Class EnumSymbol
java.lang.Object
|
+----EnumSymbol
- public class EnumSymbol
- extends Object
- implements Serializable
The class `EnumSymbol' represents an enumeration symbol.
-
EnumSymbol(String)
- Constructs an instance of EnumSymbol.
-
equals(Object)
- Returns true just in case the given object is an EnumSymbol whose
string is equal to this one.
-
toString()
- Returns the string representation of this enumeration symbol.
EnumSymbol
public EnumSymbol(String symbol)
- Constructs an instance of EnumSymbol.
- Parameters:
- symbol - A string representing the enumeration symbol.
equals
public boolean equals(Object anObject)
- Returns true just in case the given object is an EnumSymbol whose
string is equal to this one.
- Parameters:
- anObject - The Object to be compared.
- Returns:
- s True just in case the given object is an EnumSymbol whose
string is equal to this one.
- Overrides:
- equals in class Object
toString
public String toString()
- Returns the string representation of this enumeration symbol.
- Parameters:
- anObject - The string representation of this enumeration symbol.
- Overrides:
- toString in class Object