|
Oracle® Coherence Java API Reference Release 3.7.1.0 E22843-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.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, BIGINTEGER_MAX_LONG, BIGINTEGER_MIN_LONG, 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(java.lang.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. |
java.util.Date |
toJavaDate() Create a Java Date from the raw date information. |
java.sql.Date |
toSqlDate() Create a JDBC Date from the raw date information. |
java.lang.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 java.sql.Date toSqlDate()
public java.util.Date toJavaDate()
public boolean equals(java.lang.Object o)
o
- another object to compare to for equalitypublic int hashCode()
public java.lang.String toString()
|
Oracle® Coherence Java API Reference Release 3.7.1.0 E22843-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |