Class Symbol

  • All Implemented Interfaces:

    public class Symbol
    extends 
    implements 
    Class to hold an instance of the BSON symbol type.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
       symbol)
      Construct a new instance with the given symbol.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean  o)
      Will compare equal to a String that is equal to the String that this holds
      getSymbol()
      Gets the symbol.
      int hashCode()  
      toString()  
      • Methods inherited from class java.lang.

        , , , , , , ,
    • Constructor Detail

      • Symbol

        public Symbol​( symbol)
        Construct a new instance with the given symbol.
        Parameters:
        symbol - the symbol
    • Method Detail

      • getSymbol

        public  getSymbol()
        Gets the symbol.
        Returns:
        the symbol
      • equals

        public boolean equals​( o)
        Will compare equal to a String that is equal to the String that this holds
        Overrides:
         in class 
        Parameters:
        o - the Symbol to compare this to
        Returns:
        true if parameter o is the same as this Symbol
      • hashCode

        public int hashCode()
        Overrides:
         in class 
      • toString

        public  toString()
        Overrides:
         in class