|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.stanford.rt.datatype.DataType | +--edu.stanford.rt.datatype.SimpleType | +--edu.stanford.rt.datatype.OrderedType | +--edu.stanford.rt.datatype.IntegerType
IntegerType
elementField Summary | |
private long |
base
|
private boolean |
includeMax
|
private boolean |
includeMin
|
private long |
max
|
private long |
min
|
private long |
step
|
Fields inherited from class edu.stanford.rt.datatype.DataType |
|
Constructor Summary | |
IntegerType(java.lang.String name,
long min,
long max,
boolean includeMin,
boolean includeMax,
long base,
long step)
Constructor for IntegerType. |
Method Summary | |
int |
compares(DataValue value1,
DataValue value2)
Method compares. |
long |
getBase()
Method getBase. |
long |
getMax()
Method getMax. |
long |
getMin()
Method getMin. |
long |
getStep()
Method getStep. |
boolean |
isMaxIncluded()
Method isMaxIncluded. |
boolean |
isMinIncluded()
Method isMinIncluded. |
boolean |
isValidValue(DataValue v)
Check if the DataValue o is a legal value for its type. |
java.lang.String |
toString(java.lang.String indent)
Method toString. |
Methods inherited from class edu.stanford.rt.datatype.DataType |
getName, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private long min
private long max
private boolean includeMin
private boolean includeMax
private long base
private long step
Constructor Detail |
public IntegerType(java.lang.String name, long min, long max, boolean includeMin, boolean includeMax, long base, long step) throws java.lang.IllegalArgumentException
Method Detail |
public long getMin()
public long getMax()
public boolean isMinIncluded()
public boolean isMaxIncluded()
public long getBase()
public long getStep()
public boolean isValidValue(DataValue v)
SimpleType
isValidValue
in class SimpleType
public int compares(DataValue value1, DataValue value2)
OrderedType
compares
in class OrderedType
value1
- value2
-
public java.lang.String toString(java.lang.String indent)
DataType
toString
in class DataType
indent
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |