|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectkiwi.util.HolderObject
kiwi.util.DateHolder
A mutable holder for a Date
value.
Field Summary | |
protected java.util.Date |
value
The current value. |
Fields inherited from class kiwi.util.HolderObject |
subtype |
Constructor Summary | |
DateHolder()
Construct a new DateHolder with an initial value of the
current date and time, and a default subtype of
FormatConstants.DATE_FORMAT . |
|
DateHolder(java.util.Date value)
Construct a new DateHolder with a specified initial
value, and a default subtype of
FormatConstants.DATE_FORMAT . |
|
DateHolder(java.util.Date value,
int subtype)
Construct a new DateHolder with a specified initial
value and subtype. |
Method Summary | |
int |
compareTo(HolderObject other)
Compare this holder object to another. |
java.util.Date |
getValue()
Get the DateHolder 's value. |
void |
setValue(java.util.Date value)
Set the DateHolder 's value. |
java.lang.String |
toString()
Get a string representation for this object. |
Methods inherited from class kiwi.util.HolderObject |
getSubtype, setSubtype |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected java.util.Date value
Constructor Detail |
public DateHolder()
DateHolder
with an initial value of the
current date and time, and a default subtype of
FormatConstants.DATE_FORMAT
.
kiwi.text.FormatConstants
public DateHolder(java.util.Date value)
DateHolder
with a specified initial
value, and a default subtype of
FormatConstants.DATE_FORMAT
.
value
- The initial value.public DateHolder(java.util.Date value, int subtype)
DateHolder
with a specified initial
value and subtype. A subtype is particularly useful for a
Date
object, since it may be used to specify which part
of the value is significant (such as the date, the time, or both).
value
- The initial value.Method Detail |
public final void setValue(java.util.Date value)
DateHolder
's value.
value
- The new value.public final java.util.Date getValue()
DateHolder
's value.
public java.lang.String toString()
public int compareTo(HolderObject other)
compareTo
in class HolderObject
other
- The HolderObject
to compare against.
-1
if this object is "less than" the other object;
1
if this object is "greater than" the other object, and
0
if the objects are "equal."
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |