|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sdnplatform.sync.internal.util.ByteArray
public final class ByteArray
A byte array container that provides an equals and hashCode pair based on the contents of the byte array. This is useful as a key for Maps.
| Field Summary | |
|---|---|
static ByteArray |
EMPTY
|
| Constructor Summary | |
|---|---|
ByteArray(byte... underlying)
|
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
byte[] |
get()
|
int |
hashCode()
|
int |
length()
|
static java.lang.Iterable<java.lang.String> |
toHexStrings(java.lang.Iterable<ByteArray> arrays)
Translate the each ByteArray in an iterable into a hexidecimal string |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final ByteArray EMPTY
| Constructor Detail |
|---|
public ByteArray(byte... underlying)
| Method Detail |
|---|
public byte[] get()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic static java.lang.Iterable<java.lang.String> toHexStrings(java.lang.Iterable<ByteArray> arrays)
arrays - The array of bytes to translate
public int length()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||