gov.noaa.pmel.util
Class SoTValue.Time

java.lang.Object
  extended by gov.noaa.pmel.util.SoTValue
      extended by gov.noaa.pmel.util.SoTValue.Time
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
SoTValue

public static class SoTValue.Time
extends SoTValue

Inner class for SoTRange for type long. Used for time storage.

Since:
sgt 3.0
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class gov.noaa.pmel.util.SoTValue
SoTValue.Double, SoTValue.Float, SoTValue.GeoDate, SoTValue.Integer, SoTValue.Short, SoTValue.Time
 
Constructor Summary
SoTValue.Time()
          Default constructor.
SoTValue.Time(GeoDate value)
           
SoTValue.Time(long value)
          Construct and initialize value.
 
Method Summary
 void add(SoTValue val)
          Add to value.
 boolean equals(SoTValue val)
          Test for equality
 GeoDate getGeoDate()
          Get time as GeoDate.
 long getLongTime()
          Get time as long since 1970-01-01.
 java.lang.Object getObjectValue()
           
 long getValue()
          Get the value
 boolean isTime()
          Test if SoTValue is time
 void setValue(long value)
          Set the value
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SoTValue.Time

public SoTValue.Time()
Default constructor.


SoTValue.Time

public SoTValue.Time(long value)
Construct and initialize value.


SoTValue.Time

public SoTValue.Time(GeoDate value)
Method Detail

getValue

public long getValue()
Get the value


setValue

public void setValue(long value)
Set the value


getObjectValue

public java.lang.Object getObjectValue()
Specified by:
getObjectValue in class SoTValue

isTime

public boolean isTime()
Test if SoTValue is time

Specified by:
isTime in class SoTValue

equals

public boolean equals(SoTValue val)
Test for equality

Specified by:
equals in class SoTValue

add

public void add(SoTValue val)
Add to value.

Specified by:
add in class SoTValue
Since:
3.0

getLongTime

public long getLongTime()
Get time as long since 1970-01-01.

Specified by:
getLongTime in class SoTValue
Since:
3.0

getGeoDate

public GeoDate getGeoDate()
Get time as GeoDate.

Specified by:
getGeoDate in class SoTValue
Since:
3.0

toString

public java.lang.String toString()
Specified by:
toString in class SoTValue