Package org.bson.types
Class Symbol
java.lang.Object
org.bson.types.Symbol
- All Implemented Interfaces:
Serializable
Class to hold an instance of the BSON symbol type.
- See Also:
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Symbol
Construct a new instance with the given symbol.- Parameters:
symbol
- the symbol
-
-
Method Details
-
getSymbol
Gets the symbol.- Returns:
- the symbol
-
equals
Will compare equal to a String that is equal to the String that this holds -
hashCode
public int hashCode() -
toString
-