Package org.bson.types
Class Symbol
- java.lang.Object
-
- org.bson.types.Symbol
-
- All Implemented Interfaces:
Serializable
public class Symbol extends Object implements Serializable
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
equals(Object o)
Will compare equal to a String that is equal to the String that this holdsString
getSymbol()
Gets the symbol.int
hashCode()
String
toString()
-
-
-
Constructor Detail
-
Symbol
public Symbol(String symbol)
Construct a new instance with the given symbol.- Parameters:
symbol
- the symbol
-
-