|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tangosol.util.Base
com.tangosol.io.pof.PofHelper
com.tangosol.io.pof.RawTime
public class RawTime
An immutable POF time value.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.tangosol.io.pof.PofHelper |
---|
PofHelper.ReadableEntrySetMap, PofHelper.WriteableEntrySetMap |
Field Summary |
---|
Fields inherited from class com.tangosol.io.pof.PofHelper |
---|
BIGDECIMAL_ZERO, BINARY_EMPTY, BOOLEAN_ARRAY_EMPTY, BYTE_ARRAY_EMPTY, CHAR_ARRAY_EMPTY, COLLECTION_EMPTY, DOUBLE_ARRAY_EMPTY, FLOAT_ARRAY_EMPTY, INT_ARRAY_EMPTY, LONG_ARRAY_EMPTY, OBJECT_ARRAY_EMPTY, SHORT_ARRAY_EMPTY |
Constructor Summary | |
---|---|
RawTime(int nHour,
int nMinute,
int nSecond,
int nNano,
boolean fUTC)
Construct a raw POF time value. |
|
RawTime(int nHour,
int nMinute,
int nSecond,
int nNano,
int nHourOffset,
int nMinuteOffset)
Construct a raw POF time value with a timezone. |
Method Summary | |
---|---|
boolean |
equals(Object o)
Compare this object with another for equality. |
int |
getHour()
Determine the time's hour value. |
int |
getHourOffset()
Determine the timezone's hour offset value. |
int |
getMinute()
Determine the time's minute value. |
int |
getMinuteOffset()
Determine the timezone's minute offset value. |
int |
getNano()
Determine the time's nanosecond value. |
int |
getSecond()
Determine the time's second value. |
int |
hashCode()
Obtain the hashcode for this object. |
boolean |
hasTimezone()
Determine if the time value has an explicit timezone. |
boolean |
isUTC()
Determine if the time value uses UTC. |
Date |
toJavaDate()
Create a Java Date from the raw time information. |
Time |
toSqlTime()
Create a JDBC Time from the raw time information. |
String |
toString()
Format this object's data as a human-readable string. |
Constructor Detail |
---|
public RawTime(int nHour, int nMinute, int nSecond, int nNano, boolean fUTC)
nHour
- the hour between 0 and 23 inclusivenMinute
- the minute value between 0 and 59 inclusivenSecond
- the second value between 0 and 59 inclusive (and
theoretically 60 for a leap-second)nNano
- the nanosecond value between 0 and 999999999 inclusivefUTC
- true if the time value is UTC or false if the time value
does not have an explicit time zonepublic RawTime(int nHour, int nMinute, int nSecond, int nNano, int nHourOffset, int nMinuteOffset)
nHour
- the hour between 0 and 23 inclusivenMinute
- the minute value between 0 and 59 inclusivenSecond
- the second value between 0 and 59 inclusive (and
theoretically 60 for a leap-second)nNano
- the nanosecond value between 0 and 999999999
inclusivenHourOffset
- the timezone offset in hours from UTC, for example
0 for BST, -5 for EST and 1 for CETnMinuteOffset
- the timezone offset in minutes, for example 0 (in
most cases) or 30Method Detail |
---|
public int getHour()
public int getMinute()
public int getSecond()
public int getNano()
public boolean hasTimezone()
public boolean isUTC()
public int getHourOffset()
public int getMinuteOffset()
public Time toSqlTime()
public Date toJavaDate()
public boolean equals(Object o)
o
- another object to compare to for equality
public int hashCode()
public String toString()
|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |