Symbol
Date: 2015-03-03

org.bson.types

## Class Symbol

- java.lang.Object
- - org.bson.types.Symbol

- All Implemented Interfaces:
    java.io.Serializable

      public class Symbol
      extends java.lang.Object
      implements java.io.Serializable

  Class to hold a BSON symbol object, which is an interned string in Ruby
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `Symbol(java.lang.String s)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `equals(java.lang.Object o)` Will compare equal to a String that is equal to the String that this holds
    `java.lang.String` | `getSymbol()`
    `int` | `hashCode()`
    `java.lang.String` | `toString()`

    - ### Methods inherited from class java.lang.Object

      `getClass, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### Symbol

          public Symbol(java.lang.String s)

  - ### Method Detail

    - #### getSymbol

          public java.lang.String getSymbol()

    - #### equals

          public boolean equals(java.lang.Object o)

      Will compare equal to a String that is equal to the String that this holds
      Overrides:
        `equals` in class `java.lang.Object`
      Parameters:
        `o` -
      Returns:

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `java.lang.Object`

    - #### toString

          public java.lang.String toString()

      Overrides:
        `toString` in class `java.lang.Object`