Class 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.
       
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Code

        public Code​(java.lang.String code)
        Deprecated.
        Construct a new instance with the given code.
        Parameters:
        code - the Javascript code
    • 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 class java.lang.Object
      • hashCode

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

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