|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.flatfile.DynamicField.Bounds
public static class DynamicField.Bounds
Bounds
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
DynamicField.Bounds(int minimum,
int maximum)
Create a new Bounds. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final DynamicField.Bounds ALL_VALID
public static final DynamicField.Bounds DEFAULT
protected int minimum
protected int maximum
| Constructor Detail |
|---|
public DynamicField.Bounds(int minimum,
int maximum)
minimum - sizemaximum - size| Method Detail |
|---|
public int getMaximum()
public void setMaximum(int maximum)
maximum - intpublic int getMinimum()
public void setMinimum(int minimum)
minimum - intpublic boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
public void validate(byte[] value,
DynamicField df)
value - to validatedf - field to validate
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||