Package org.bson.types
Class Code
- java.lang.Object
-
- org.bson.types.Code
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
CodeWithScope
,CodeWScope
@Deprecated(since="2022-10-31") public class Code extends java.lang.Object implements java.io.Serializable
Deprecated.Usage of this API is not supported in AEM as a Cloud Service.For using the Code type.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Code(java.lang.String code)
Deprecated.Construct a new instance with the given code.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
Deprecated.java.lang.String
getCode()
Deprecated.Get the Javascript code.int
hashCode()
Deprecated.java.lang.String
toString()
Deprecated.
-
-
-
Method Detail
-
getCode
public java.lang.String getCode()
Deprecated.Get the Javascript code.- Returns:
- the code
-
equals
public boolean equals(java.lang.Object o)
Deprecated.- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
Deprecated.- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toString
in classjava.lang.Object
-
-