Class Code

java.lang.Object
org.bson.types.Code
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
CodeWithScope, CodeWScope

@Deprecated(since="2022-10-31") public class Code extends Object implements Serializable
Deprecated.
Usage of this API is not supported in AEM as a Cloud Service.
For using the Code type.
See Also:
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    boolean
    Deprecated.
     
    Deprecated.
    Get the Javascript code.
    int
    Deprecated.
     
    Deprecated.
     

    Methods inherited from class java.lang.Object

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

    • Code

      public Code(String code)
      Deprecated.
      Construct a new instance with the given code.
      Parameters:
      code - the Javascript code
  • Method Details

    • getCode

      public String getCode()
      Deprecated.
      Get the Javascript code.
      Returns:
      the code
    • equals

      public boolean equals(Object o)
      Deprecated.
      Overrides:
      equals in class Object
    • hashCode

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

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