de.ls5.jlearn.shared
Class SymbolImpl
java.lang.Object
de.ls5.jlearn.shared.SymbolImpl
- All Implemented Interfaces:
- Symbol, Serializable, Comparable<Object>
- Direct Known Subclasses:
- SymbolComplexImpl
public class SymbolImpl
- extends Object
- implements Symbol
- Author:
- merten
- See Also:
- Serialized Form
SymbolImpl
public SymbolImpl()
SymbolImpl
public SymbolImpl(Object userObject)
getUserObject
public Object getUserObject()
- Description copied from interface:
Symbol
- Every
Symbol
should carry an arbitrary Object
, e.g.
a representative String
. This is the usual setter-method.
- Specified by:
getUserObject
in interface Symbol
- Returns:
- user object of this
Symbol
setUserObject
public void setUserObject(Object userObject)
- Description copied from interface:
Symbol
- Set the user object of this
Symbol
.
- Specified by:
setUserObject
in interface Symbol
- Parameters:
userObject
- Object
this Symbol
should refer to as its user object.
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
compareTo
public int compareTo(Object o)
- Specified by:
compareTo
in interface Comparable<Object>
Copyright © 2011. All Rights Reserved.