org.infinispan.schematic.document

## Class Code

- java.lang.Object
- - org.infinispan.schematic.document.Code

- Direct Known Subclasses:
    CodeWithScope

      @Immutable
      @SerializeWith(value=Code.Externalizer.class)
      public class Code
      extends Object

  A `JavaScript code` value for use within a `BSON Object`.
  Since:
    5.1

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class and Description
    --- | ---
    `static class` | `Code.Externalizer`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `Code(String code)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `equals(Object obj)`
    `String` | `getCode()`
    `int` | `hashCode()`
    `String` | `toString()`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### Code

          public Code(String code)

  - ### Method Detail

    - #### getCode

          public String getCode()

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `Object`

    - #### equals

          public boolean equals(Object obj)

      Overrides:
        `equals` in class `Object`

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.