be.lassi.base
Class StringHolder
java.lang.Object
be.lassi.base.AbstractHolder
be.lassi.base.Holder<java.lang.String>
be.lassi.base.StringHolder
- All Implemented Interfaces:
- NamedValue, java.io.Serializable
public class StringHolder
- extends Holder<java.lang.String>
A value holder for String
values.
- See Also:
- Serialized Form
Constructor Summary |
StringHolder()
Constructs a new instance. |
StringHolder(java.lang.String name,
java.lang.String value)
Constructs a new instance. |
Method Summary |
boolean |
equals(java.lang.Object object)
|
int |
hashCode()
|
void |
setStringValue(java.lang.String value)
Sets the value in string format. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
StringHolder
public StringHolder()
- Constructs a new instance.
StringHolder
public StringHolder(java.lang.String name,
java.lang.String value)
- Constructs a new instance.
- Parameters:
name
- the value holder namevalue
- the initial string value
equals
public boolean equals(java.lang.Object object)
-
- Overrides:
equals
in class Holder<java.lang.String>
hashCode
public int hashCode()
-
- Overrides:
hashCode
in class Holder<java.lang.String>
setStringValue
public void setStringValue(java.lang.String value)
- Sets the value in string format.
- Specified by:
setStringValue
in interface NamedValue
- Overrides:
setStringValue
in class Holder<java.lang.String>
- Parameters:
value
- the value to be set in string format