|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectkiwi.util.HolderObject
kiwi.util.StringHolder
A mutable holder for a String
value.
Field Summary | |
protected java.lang.String |
value
The current value. |
Fields inherited from class kiwi.util.HolderObject |
subtype |
Constructor Summary | |
StringHolder()
Construct a new StringHolder with an initial value of
null and default subtype of 0 . |
|
StringHolder(java.lang.String value)
Construct a new StringHolder with a specified initial
value and default subtype of 0 . |
|
StringHolder(java.lang.String value,
int subtype)
Construct a new StringHolder with a specified initial
value and subtype. |
Method Summary | |
int |
compareTo(HolderObject other)
Compare this holder object to another. |
java.lang.String |
getValue()
Get the StringHolder 's value. |
void |
setValue(java.lang.String value)
Set the StringHolder '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.lang.String value
Constructor Detail |
public StringHolder()
StringHolder
with an initial value of
null
and default subtype of 0
.
public StringHolder(java.lang.String value)
StringHolder
with a specified initial
value and default subtype of 0
.
value
- The initial value.public StringHolder(java.lang.String value, int subtype)
StringHolder
with a specified initial
value and subtype.
value
- The initial value.subtype
- The subtype for this value.Method Detail |
public final void setValue(java.lang.String value)
StringHolder
's value.
value
- The new value.public final java.lang.String getValue()
StringHolder
'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 |