Package org.bson.types
Class Symbol
- java.lang.Object
-
- org.bson.types.Symbol
-
- All Implemented Interfaces:
java.io.Serializable
@Deprecated(since="2022-10-31") public class Symbol extends java.lang.Object implements java.io.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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Symbol(java.lang.String symbol)
Deprecated.Construct a new instance with the given symbol.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
Deprecated.Will compare equal to a String that is equal to the String that this holdsjava.lang.String
getSymbol()
Deprecated.Gets the symbol.int
hashCode()
Deprecated.java.lang.String
toString()
Deprecated.
-
-
-
Method Detail
-
getSymbol
public java.lang.String getSymbol()
Deprecated.Gets the symbol.- Returns:
- the symbol
-
equals
public boolean equals(java.lang.Object o)
Deprecated.Will compare equal to a String that is equal to the String that this holds- Overrides:
equals
in classjava.lang.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 classjava.lang.Object
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toString
in classjava.lang.Object
-
-