Class Binary


  • public final class Binary
    extends java.lang.Object
    • Constructor Detail

      • Binary

        public Binary​(byte[] data)
      • Binary

        public Binary​(byte[] data,
                      int offset,
                      int length)
    • Method Detail

      • asByteBuffer

        public java.nio.ByteBuffer asByteBuffer()
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public final boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • getArrayOffset

        public int getArrayOffset()
      • getArray

        public byte[] getArray()
      • getLength

        public int getLength()
      • toString

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

        public static Binary combine​(java.util.Collection<Binary> binaries)
      • subBinary

        public Binary subBinary​(int offset,
                                int length)
      • create

        public static Binary create​(java.nio.ByteBuffer buffer)