Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_MAXIMUM
The default PIN maximum length: 8.
|
static int |
DEFAULT_MINIMUM
The default PIN minimum length: 4.
|
Constructor and Description |
---|
PinRuleLength()
Constructs a default rule whose minimum and maximum length are
DEFAULT_MINIMUM and
DEFAULT_MAXIMUM . |
PinRuleLength(int minimum,
int maximum)
Constructs a customized rule.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
int |
getMaximumLength()
Gets the maximum length.
|
int |
getMinimumLength()
Gets the minimum length.
|
int |
hashCode() |
public static final int DEFAULT_MINIMUM
public static final int DEFAULT_MAXIMUM
public PinRuleLength()
DEFAULT_MINIMUM
and
DEFAULT_MAXIMUM
.public PinRuleLength(int minimum, int maximum)
minimum
- the PIN's length must be at least this long.maximum
- the PIN's length must be this long or less.IllegalArgumentException
- if minimum > maximum