|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.qpid.management.domain.model.type.Binary
public final class Binary
It is a simple wrapper for a byte array (for example a 128bin). It is used to let QMan deal with an object instead of an array.
Field Summary | |
---|---|
(package private) org.apache.qpid.management.domain.model.type.Binary.State |
hashCodeAlreadyComputed
Internal state of this object used to denote the situation where the hashcode() method has already been computed. |
(package private) org.apache.qpid.management.domain.model.type.Binary.State |
hashCodeNotYetComputed
Internal state of this object used to denote the situation when the hashcode() method has never been called. |
(package private) org.apache.qpid.management.domain.model.type.Binary.State |
state
Current state (hashcode computation). |
Constructor Summary | |
---|---|
Binary(byte[] bytes)
Builds a new binary with the given byte array. |
Method Summary | |
---|---|
void |
encode(org.apache.qpid.transport.codec.Encoder encoder)
Encodes the content (wrapped byte array) of this instance using the given encoder. |
boolean |
equals(Object obj)
|
long |
getBankId()
Returns the bank identifier derived from this object identifier. |
long |
getBrokerId()
Returns the broker identifier derived from this object identifier. |
int |
hashCode()
|
String |
toString()
|
long |
unpack64(byte[] data)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
org.apache.qpid.management.domain.model.type.Binary.State hashCodeNotYetComputed
org.apache.qpid.management.domain.model.type.Binary.State hashCodeAlreadyComputed
org.apache.qpid.management.domain.model.type.Binary.State state
Constructor Detail |
---|
public Binary(byte[] bytes)
bytes
- the wrapped data.Method Detail |
---|
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public void encode(org.apache.qpid.transport.codec.Encoder encoder)
encoder
- the encoder used to encode instance content.public String toString()
toString
in class Object
public long getBankId()
public long getBrokerId()
public final long unpack64(byte[] data)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |