Object CardBrand.Companion

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final List<CardBrand> estimate(String cardNumber) Estimate all potential CardBrands for a given card number.
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • estimate

         final List<CardBrand> estimate(String cardNumber)

        Estimate all potential CardBrands for a given card number.

        Parameters:
        cardNumber - The potential card number.
        Returns:

        All matching CardBrands if the number was valid, otherwise an empty List.