org.infinispan.schematic.document

## Class Binary

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

-     @Immutable
      @SerializeWith(value=Binary.Externalizer.class)
      public final class Binary
      extends Object

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

- - ### Nested Class Summary

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

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `Binary(byte[] data)`
    `Binary(byte type, byte[] data)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `equals(Object obj)`
    `byte[]` | `getBytes()`
    `String` | `getBytesInBase64()`
    `byte` | `getType()`
    `int` | `hashCode()`
    `int` | `length()`
    `String` | `toString()`

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

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

- - ### Constructor Detail

    - #### Binary

          public Binary(byte[] data)

    - #### Binary

          public Binary(byte type,
                byte[] data)

  - ### Method Detail

    - #### getType

          public byte getType()

    - #### getBytes

          public byte[] getBytes()

    - #### length

          public int length()

    - #### 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`

    - #### getBytesInBase64

          public String getBytesInBase64()

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