public static class DynamicField.Bounds extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static DynamicField.Bounds |
ALL_VALID
Immutable range of all valid lengths.
|
static DynamicField.Bounds |
DEFAULT
Default bounds.
|
protected int |
maximum
Maximum
|
protected int |
minimum
Minimum
|
| Constructor and Description |
|---|
DynamicField.Bounds(int minimum,
int maximum)
Create a new Bounds.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
int |
getMaximum()
Get the maximum.
|
int |
getMinimum()
Get the minimum.
|
int |
hashCode() |
void |
setMaximum(int maximum)
Set the maximum.
|
void |
setMinimum(int minimum)
Set the minimum.
|
void |
validate(byte[] value,
DynamicField df)
Validate a field and value against these Bounds.
|
public static final DynamicField.Bounds ALL_VALID
public static final DynamicField.Bounds DEFAULT
protected int minimum
protected int maximum
public DynamicField.Bounds(int minimum, int maximum)
minimum - sizemaximum - sizepublic int getMaximum()
public void setMaximum(int maximum)
maximum - intpublic int getMinimum()
public void setMinimum(int minimum)
minimum - intpublic void validate(byte[] value, DynamicField df)
value - to validatedf - field to validateCopyright © 2008-2016 The Apache Software Foundation. All Rights Reserved.