|
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.RawDate
public class RawDate
An immutable POF date 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 | |
---|---|
RawDate(int nYear,
int nMonth,
int nDay)
Construct a raw POF date value. |
Method Summary | |
---|---|
boolean |
equals(Object o)
Compare this object with another for equality. |
int |
getDay()
Determine the date's day value. |
int |
getMonth()
Determine the date's month value. |
int |
getYear()
Determine the date's year value. |
int |
hashCode()
Obtain the hashcode for this object. |
Date |
toJavaDate()
Create a Java Date from the raw date information. |
Date |
toSqlDate()
Create a JDBC Date from the raw date information. |
String |
toString()
Format this object's data as a human-readable string. |
Constructor Detail |
---|
public RawDate(int nYear, int nMonth, int nDay)
nYear
- the year number as defined by ISO8601; note the
difference with the Java Date class, whose year is
relative to 1900nMonth
- the month number between 1 and 12 inclusive as defined
by ISO8601; note the difference from the Java Date
class, whose month value is 0-based (0-11)nDay
- the day number between 1 and 31 inclusive as defined by
ISO8601Method Detail |
---|
public int getYear()
public int getMonth()
public int getDay()
public Date toSqlDate()
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 |