org.bson.types
Class Symbol

java.lang.Object
  extended by 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

Constructor Summary
Symbol(String s)
           
 
Method Summary
 boolean equals(Object o)
          Will compare equal to a String that is equal to the String that this holds
 String getSymbol()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Symbol

public Symbol(String s)
Method Detail

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