de.ls5.jlearn.shared
Class SymbolImpl

java.lang.Object
  extended by 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

Constructor Summary
SymbolImpl()
           
SymbolImpl(Object userObject)
           
 
Method Summary
 int compareTo(Object o)
           
 boolean equals(Object o)
           
 Object getUserObject()
          Every Symbol should carry an arbitrary Object, e.g.
 int hashCode()
           
 void setUserObject(Object userObject)
          Set the user object of this Symbol.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SymbolImpl

public SymbolImpl()

SymbolImpl

public SymbolImpl(Object userObject)
Method Detail

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.