public class Symbol
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
Symbol(java.lang.String symbol)
Construct a new instance with the given symbol.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
Will compare equal to a String that is equal to the String that this holds
|
java.lang.String |
getSymbol()
Gets the symbol.
|
int |
hashCode() |
java.lang.String |
toString() |
public Symbol(java.lang.String symbol)
symbol
- the symbolpublic java.lang.String getSymbol()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- the Symbol to compare this topublic int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object