ModeShape Distribution 3.2.0.Final

org.infinispan.schematic.document
Class Binary

java.lang.Object
  extended by 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
static class Binary.Externalizer
           
 
Constructor Summary
Binary(byte[] data)
           
Binary(byte type, byte[] data)
           
 
Method Summary
 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()

ModeShape Distribution 3.2.0.Final

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