Enum INN.Type
- java.lang.Object
-
- java.lang.Enum<INN.Type>
-
- org.hibernate.validator.constraints.ru.INN.Type
-
- All Implemented Interfaces:
Serializable,Comparable<INN.Type>
- Enclosing class:
- INN
public static enum INN.Type extends Enum<INN.Type>
Defines the INN length. Valid lengths of INN are12for individual usage and10for juridical which are represented asINDIVIDUALandJURIDICALrespectively.Using
ANYallows to validate values that could either be personal or juridical. In such case, INN type would be determined by the length of the corresponding value.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANYINDIVIDUALJURIDICAL
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static INN.TypevalueOf(String name)Returns the enum constant of this type with the specified name.static INN.Type[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Method Detail
-
values
public static INN.Type[] 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 (INN.Type c : INN.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static INN.Type 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
-
-