Enum CardExpiration.YearFormat
- java.lang.Object
-
- java.lang.Enum<CardExpiration.YearFormat>
-
- com.github.damianwajser.validator.annotation.cards.CardExpiration.YearFormat
-
- All Implemented Interfaces:
Serializable,Comparable<CardExpiration.YearFormat>
- Enclosing class:
- CardExpiration
public static enum CardExpiration.YearFormat extends Enum<CardExpiration.YearFormat>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FOUR_DIGITTWO_DIGITS
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CardExpiration.YearFormatvalueOf(String name)Returns the enum constant of this type with the specified name.static CardExpiration.YearFormat[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TWO_DIGITS
public static final CardExpiration.YearFormat TWO_DIGITS
-
FOUR_DIGIT
public static final CardExpiration.YearFormat FOUR_DIGIT
-
-
Method Detail
-
values
public static CardExpiration.YearFormat[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CardExpiration.YearFormat c : CardExpiration.YearFormat.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CardExpiration.YearFormat valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-