|
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.TimeRange
Contains minimum and maximum Time values.
| Field Summary | |
GeoDate |
delta
The range's time increment |
GeoDate |
end
The range's last time |
GeoDate |
start
The range's first time |
| Constructor Summary | |
TimeRange()
the Default constructor |
|
TimeRange(GeoDate tstart,
GeoDate tend)
Constructor |
|
TimeRange(GeoDate tstart,
GeoDate tend,
GeoDate tdelta)
Constructor |
|
| Method Summary | |
void |
add(TimeRange trange)
Adds the TimeRange object to this
TimeRange. |
boolean |
equals(TimeRange tr)
Test for equality. |
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 GeoDate start
public GeoDate end
public GeoDate delta
| Constructor Detail |
public TimeRange()
public TimeRange(GeoDate tstart,
GeoDate tend)
tstart - first timetend - last time
public TimeRange(GeoDate tstart,
GeoDate tend,
GeoDate tdelta)
tstart - first timetend - last timedelta - time increment| Method Detail |
public void add(TimeRange trange)
TimeRange object to this
TimeRange. The resulting TimeRange is
the smallest TimeRange that contains both the
origial TimeRange and the specified
TimeRange.public boolean equals(TimeRange tr)
public java.lang.String toString()
java.lang.ObjecttoString 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 java.lang.Objectjava.lang.Object
|
SGT Home | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||