Class DefaultCreditCardFacade

  • All Implemented Interfaces:
    CreditCardFacade

    public class DefaultCreditCardFacade
    extends java.lang.Object
    implements CreditCardFacade
    Facade for converting credit card codes.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean mappingStrategy​(java.util.Collection<CardTypeData> creditCards)
      mappingStrategy calls the appropriate service for converting the credit card codes.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultCreditCardFacade

        public DefaultCreditCardFacade()
    • Method Detail

      • mappingStrategy

        public boolean mappingStrategy​(java.util.Collection<CardTypeData> creditCards)
        Description copied from interface: CreditCardFacade
        mappingStrategy calls the appropriate service for converting the credit card codes.
        Specified by:
        mappingStrategy in interface CreditCardFacade
        Parameters:
        creditCards - credit card types to be mapped
        Returns:
        false, if no mapping strategy is implemented or no conversion has been processed