public static enum CodeOption.LengthControl extends java.lang.Enum<CodeOption.LengthControl> implements java.lang.Cloneable
Enum Constant and Description |
---|
NO_CHECK
NO_CHECK:制限しない Don't limit |
ONE_FIXED
ONE_FIXED:length1の値の桁数のみを許可する Allow only the number of digits in the value of length1 |
RANGE
RANGE:length1からlength2の間の桁数を許可する Allows digits between length1 and length2 |
TWO_FIXED
TWO_FIXED:length1,length2の値の桁数のみを許可する Allow only the number of digits of the value of length1 and length2 |
Modifier and Type | Method and Description |
---|---|
int |
getId() |
static CodeOption.LengthControl |
valueOf(int id) |
static CodeOption.LengthControl |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CodeOption.LengthControl[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CodeOption.LengthControl NO_CHECK
public static final CodeOption.LengthControl ONE_FIXED
public static final CodeOption.LengthControl TWO_FIXED
public static final CodeOption.LengthControl RANGE
public static CodeOption.LengthControl[] values()
for (CodeOption.LengthControl c : CodeOption.LengthControl.values()) System.out.println(c);
public static CodeOption.LengthControl valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static CodeOption.LengthControl valueOf(int id)
public int getId()