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 a BSON symbol object, which is an interned string in Ruby
- See Also:
- Serialized Form
Symbol
public Symbol(String s)
getSymbol
public String getSymbol()
equals
public boolean equals(Object o)
- Will compare equal to a String that is equal to the String that this holds
- Overrides:
equals in class Object
- Parameters:
o -
- Returns:
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
toString
public String toString()
- Overrides:
toString in class Object