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[] a1,
byte[] a2)
Compare both byte arrays.
|
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[] a1, byte[] a2)
null
.a1
- The first array.a2
- The second array.true
if both are equal.public boolean equals(java.lang.Object otherObject)
equals
in class java.lang.Object
otherObject
- The other comparable byte array object.public byte[] getArray()
public int hashCode()
hashCode
in class java.lang.Object
public int compareTo(java.lang.Object otherObject)
compareTo
in interface java.lang.Comparable
otherObject
- The other ComparableByteArray object to compare to.IAIK JavaSecurity Website https://jce.iaik.tugraz.at/
IAIK at Graz University of Technology, Austria, Europe
Copyright 2001-2023 IAIK, Graz University of Technology, Inffeldgasse 16a, 8010 Graz, Austria. All Rights Reserved. Version 1.9.4