public class ComparableByteArray
extends java.lang.Object
implements java.lang.Comparable
| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
array_
The content of this object.
|
| Constructor and Description |
|---|
ComparableByteArray(byte[] array)
Creates a comparable byte array object.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(java.lang.Object otherObject)
Implementation of Comparable.compareTo(java.lang.Object).
|
static boolean |
equals(byte[] array1,
byte[] array2)
Checks, if the content of the given arrays are equal.
|
boolean |
equals(java.lang.Object otherObject)
Checks, if the content array of this object is equal to the content array
of the other object.
|
byte[] |
getArray()
Get the content byte array of this object.
|
int |
hashCode()
A hash code of this object.
|
public ComparableByteArray(byte[] array)
array - The content array of this object.public static boolean equals(byte[] array1,
byte[] array2)
array1 - The first byte array.array2 - The second byte array.public boolean equals(java.lang.Object otherObject)
equals in class java.lang.ObjectotherObject - The other comparable byte array object.public byte[] getArray()
public int hashCode()
hashCode in class java.lang.Objectpublic int compareTo(java.lang.Object otherObject)
compareTo in interface java.lang.ComparableotherObject - The other ComparableByteArray object to compare to.