|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsimtools.ui.GenericMapper.Interval
public static class GenericMapper.Interval
Associate a value for a data interval. The data interval can be of type double, long, or String, and the comparison will use the best possible conversion. Ex: you can specify an interval 0xABCDEF0123456789 < x < 0xABCDEF0123456791 and 0xABCDEF0123456790 will match (which would not be possible with the precision of "double" data)
Field Summary | |
---|---|
protected boolean |
boundedMax
|
protected boolean |
boundedMin
|
protected double |
dmax
|
protected double |
dmin
|
protected boolean |
infiniteMax
|
protected boolean |
infiniteMin
|
protected long |
lmax
|
protected long |
lmin
|
protected java.lang.String |
smax
|
protected java.lang.String |
smin
|
protected int |
type
|
java.lang.Object |
value
The value associated with this interval |
Constructor Summary | |
---|---|
GenericMapper.Interval(boolean isMore,
double v,
boolean bounded,
java.lang.Object value)
Creates an interval of "double" data with a simple bound |
|
GenericMapper.Interval(boolean isMore,
long v,
boolean bounded,
java.lang.Object value)
Creates an interval of "long" data with a simple bound |
|
GenericMapper.Interval(boolean isMore,
java.lang.String v,
boolean bounded,
java.lang.Object value)
Creates an interval of "String" data with a simple bound |
|
GenericMapper.Interval(double min,
boolean boundedMin,
double max,
boolean boundedMax,
java.lang.Object value)
|
|
GenericMapper.Interval(long min,
boolean boundedMin,
long max,
boolean boundedMax,
java.lang.Object value)
|
|
GenericMapper.Interval(java.lang.Object value)
Creates a degenarated interval always including any value |
|
GenericMapper.Interval(java.lang.String min,
boolean boundedMin,
java.lang.String max,
boolean boundedMax,
java.lang.Object value)
|
Method Summary | |
---|---|
java.lang.Object |
clone()
|
boolean |
contains(double value)
|
boolean |
contains(long value)
|
boolean |
contains(java.lang.String value)
|
java.lang.Number |
getMax()
|
java.lang.Number |
getMin()
|
java.lang.Object |
getValue()
|
boolean |
isBoundedMax()
|
boolean |
isBoundedMin()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected int type
protected double dmin
protected double dmax
protected long lmin
protected long lmax
protected java.lang.String smin
protected java.lang.String smax
protected boolean boundedMin
protected boolean boundedMax
protected boolean infiniteMin
protected boolean infiniteMax
public java.lang.Object value
Constructor Detail |
---|
public GenericMapper.Interval(boolean isMore, double v, boolean bounded, java.lang.Object value)
isMore
- Values in the interval are greater than the v argumentv
- The value to consider as the interval limitbounded
- If the value itself is in the intervalvalue
- The value to associate with this intervalpublic GenericMapper.Interval(double min, boolean boundedMin, double max, boolean boundedMax, java.lang.Object value)
public GenericMapper.Interval(boolean isMore, long v, boolean bounded, java.lang.Object value)
isMore
- Values in the interval are greater than the v argumentv
- The value to consider as the interval limitbounded
- If the value itself is in the intervalvalue
- The value to associate with this intervalpublic GenericMapper.Interval(long min, boolean boundedMin, long max, boolean boundedMax, java.lang.Object value)
public GenericMapper.Interval(boolean isMore, java.lang.String v, boolean bounded, java.lang.Object value)
isMore
- Values in the interval are greater than the v argumentv
- The value to consider as the interval limitbounded
- If the value itself is in the intervalvalue
- The value to associate with this intervalpublic GenericMapper.Interval(java.lang.String min, boolean boundedMin, java.lang.String max, boolean boundedMax, java.lang.Object value)
public GenericMapper.Interval(java.lang.Object value)
Method Detail |
---|
public boolean contains(double value)
public boolean contains(long value)
public boolean contains(java.lang.String value)
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
public java.lang.Number getMin() throws java.lang.NumberFormatException
java.lang.NumberFormatException
public java.lang.Number getMax() throws java.lang.NumberFormatException
java.lang.NumberFormatException
public boolean isBoundedMin()
public boolean isBoundedMax()
public java.lang.Object getValue()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |