|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.noaa.pmel.util.GeoDateArray
public class GeoDateArray
GeoDateArray
creates an efficient storage of
GeoDate
objects. This is accomplished by using an
internal storage of long
for the number of
milliseconds since January 1, 1970, 00:00:00 GMT.
Constructor Summary | |
---|---|
GeoDateArray(java.util.Date[] dates)
Construct a new GeoDateArray from an array of
Date s. |
|
GeoDateArray(GeoDate[] dates)
Construct a new GeoDateArray from an array of
GeoDate s. |
|
GeoDateArray(long[] dates)
Construct a new GeoDateArray from an array of
long s that represent the number of
milliseconds since January 1, 1970, 00:00:00 GMT. |
Method Summary | |
---|---|
void |
addOffset(int index,
long offset)
Add offset to single date. |
void |
addOffset(long offset)
Add offset to all dates. |
GeoDate[] |
getGeoDate()
|
GeoDate |
getGeoDate(int index)
|
int |
getLength()
Get length of array. |
double[] |
getOffset(GeoDate ref)
Time offset for reference GeoDate . |
double |
getOffset(int index,
GeoDate ref)
Time offset for reference GeoDate . |
long[] |
getOffsetTime(GeoDate ref)
Time offset for reference GeoDate . |
long |
getOffsetTime(int index,
GeoDate ref)
Time offset for reference GeoDate . |
long[] |
getTime()
|
long |
getTime(int index)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GeoDateArray(GeoDate[] dates)
GeoDateArray
from an array of
GeoDate
s.
dates
- an array of GeoDate
s.public GeoDateArray(java.util.Date[] dates)
GeoDateArray
from an array of
Date
s.
dates
- an array of Date
s.public GeoDateArray(long[] dates)
GeoDateArray
from an array of
long
s that represent the number of
milliseconds since January 1, 1970, 00:00:00 GMT. Missing value
for date is Long.MAX_VALUE
.
dates
- an array of long
s.Method Detail |
---|
public long[] getTime()
public long getTime(int index)
public GeoDate getGeoDate(int index)
public GeoDate[] getGeoDate()
public double getOffset(int index, GeoDate ref)
GeoDate
.
ref
- reference GeoDate
public double[] getOffset(GeoDate ref)
GeoDate
.
ref
- reference GeoDate
public long getOffsetTime(int index, GeoDate ref)
GeoDate
.
ref
- reference GeoDate
public long[] getOffsetTime(GeoDate ref)
GeoDate
.
ref
- reference GeoDate
public void addOffset(long offset)
public void addOffset(int index, long offset)
public int getLength()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |