be.lassi.base
Class AbstractHolder
java.lang.Object
be.lassi.base.AbstractHolder
- All Implemented Interfaces:
- NamedValue, java.io.Serializable
- Direct Known Subclasses:
- BooleanHolder, Holder, IntHolder, LongHolder
public abstract class AbstractHolder
- extends java.lang.Object
- implements NamedValue, java.io.Serializable
Implements the common functionality for the value holders.
- See Also:
- Serialized Form
Constructor Summary |
protected |
AbstractHolder(java.lang.String name)
Constructs a new instance. |
Method Summary |
boolean |
equals(java.lang.Object object)
|
java.lang.String |
getName()
Gets the preference name. |
int |
hashCode()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
AbstractHolder
protected AbstractHolder(java.lang.String name)
- Constructs a new instance.
- Parameters:
name
- the value holder name
equals
public boolean equals(java.lang.Object object)
-
- Overrides:
equals
in class java.lang.Object
getName
public java.lang.String getName()
- Gets the preference name.
- Specified by:
getName
in interface NamedValue
- Returns:
- the preference name
hashCode
public int hashCode()
-
- Overrides:
hashCode
in class java.lang.Object
toString
public java.lang.String toString()
-
- Overrides:
toString
in class java.lang.Object