Package org.bson.types
Class Symbol
-
- org.bson.types.Symbol
-
- All Implemented Interfaces:
public class Symbol extends implements
Class to hold an instance of the BSON symbol type.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
o)
Will compare equal to a String that is equal to the String that this holdsgetSymbol()
Gets the symbol.int
hashCode()
toString()
-
-
-
Method Detail
-
getSymbol
public getSymbol()
Gets the symbol.- Returns:
- the symbol
-
equals
public boolean equals( o)
Will compare equal to a String that is equal to the String that this holds- Overrides:
in class
- Parameters:
o
- the Symbol to compare this to- Returns:
- true if parameter o is the same as this Symbol
-
hashCode
public int hashCode()
- Overrides:
in class
-
toString
public toString()
- Overrides:
in class
-
-