Class Symbol

java.lang.Object
org.bson.types.Symbol
All Implemented Interfaces:
Serializable

@Deprecated(since="2022-10-31") public class Symbol extends Object implements Serializable
Deprecated.
Usage of this API is not supported in AEM as a Cloud Service.
Class to hold an instance of the BSON symbol type.
See Also:
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    boolean
    Deprecated.
    Will compare equal to a String that is equal to the String that this holds
    Deprecated.
    Gets the symbol.
    int
    Deprecated.
     
    Deprecated.
     

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Symbol

      public Symbol(String symbol)
      Deprecated.
      Construct a new instance with the given symbol.
      Parameters:
      symbol - the symbol
  • Method Details

    • getSymbol

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

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

      public int hashCode()
      Deprecated.
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Deprecated.
      Overrides:
      toString in class Object