|
SGT Home | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gov.noaa.pmel.util.SoTRange | +--gov.noaa.pmel.util.SoTRange.Integer
Inner class for SoTRange
for type
integer
.
Inner classes inherited from class gov.noaa.pmel.util.SoTRange |
SoTRange.Double, SoTRange.Float, SoTRange.GeoDate, SoTRange.Integer, SoTRange.Short |
Field Summary | |
int |
delta
The value of the increment |
int |
end
The range's last value |
int |
start
The range's first value |
Constructor Summary | |
SoTRange.Integer()
Default constructor. |
|
SoTRange.Integer(int ustart,
int uend)
Construct SoTRange with start and end. |
|
SoTRange.Integer(int ustart,
int uend,
int udel)
SoTRange constructor. |
|
SoTRange.Integer(Range range)
Construct a SoTRange from a Range . |
Method Summary | |
void |
add(SoTRange range)
Adds the SoTRange object to this
SoTRange . |
SoTRange |
copy()
Make a copy of the SoTRange . |
boolean |
equals(SoTRange r)
Test for equality. |
void |
flipStartAndEnd()
Exchange start and end values |
SoTValue |
getDelta()
Get delta value |
java.lang.Object |
getDeltaObject()
|
SoTValue |
getEnd()
Get end value |
java.lang.Object |
getEndObject()
|
SoTValue |
getStart()
Get start value |
java.lang.Object |
getStartObject()
|
boolean |
isStartOrEndMissing()
Test if start or end values are missing |
boolean |
isTime()
Test if SoTRange is temportal |
void |
setDelta(SoTValue value)
|
void |
setEnd(SoTValue value)
|
void |
setStart(SoTValue value)
|
java.lang.String |
toString()
Returns a string representation of the object. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public int start
public int end
public int delta
Constructor Detail |
public SoTRange.Integer()
public SoTRange.Integer(int ustart, int uend)
SoTRange
with start and end. Default for
delta is MAX_VALUEustart
- first valueuend
- last valuepublic SoTRange.Integer(int ustart, int uend, int udel)
SoTRange
constructor.ustart
- first valueuend
- last valueudel
- increment valuepublic SoTRange.Integer(Range range)
SoTRange
from a Range
.Method Detail |
public SoTValue getStart()
getStart
in class SoTRange
public void setStart(SoTValue value)
setStart
in class SoTRange
public SoTValue getEnd()
getEnd
in class SoTRange
public void setEnd(SoTValue value)
setEnd
in class SoTRange
public SoTValue getDelta()
getDelta
in class SoTRange
public void setDelta(SoTValue value)
setDelta
in class SoTRange
public java.lang.Object getStartObject()
getStartObject
in class SoTRange
public java.lang.Object getEndObject()
getEndObject
in class SoTRange
public java.lang.Object getDeltaObject()
getDeltaObject
in class SoTRange
public void add(SoTRange range)
SoTRange
object to this
SoTRange
. The resulting SoTRange
is
the smallest SoTRange
that contains both the
origial SoTRange
and the specified
SoTRange
.add
in class SoTRange
public boolean equals(SoTRange r)
equals
in class SoTRange
public boolean isTime()
SoTRange
is temportalisTime
in class SoTRange
public void flipStartAndEnd()
flipStartAndEnd
in class SoTRange
public java.lang.String toString()
java.lang.Object
toString
method returns a string that
"textually represents" this object. The result should
be a concise but informative representation that is easy for a
person to read.
It is recommended that all subclasses override this method.
The toString
method for class Object
returns a string consisting of the name of the class of which the
object is an instance, the at-sign character `@
', and
the unsigned hexadecimal representation of the hash code of the
object. In other words, this method returns a string equal to the
value of:
getClass().getName() + '@' + Integer.toHexString(hashCode())
toString
in class SoTRange
java.lang.Object
public SoTRange copy()
SoTRange
.copy
in class SoTRange
public boolean isStartOrEndMissing()
isStartOrEndMissing
in class SoTRange
|
SGT Home | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |