Package jadex.common
Class ByteArrayWrapper
java.lang.Object
jadex.common.ByteArrayWrapper
Wrapper to allow byte arrays as hash keys.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
array
protected byte[] arrayThe wrapped byte array.
-
-
Constructor Details
-
ByteArrayWrapper
public ByteArrayWrapper()Creates the wrapper. -
ByteArrayWrapper
public ByteArrayWrapper(byte[] array) Creates the wrapper.
-
-
Method Details
-
getArray
public byte[] getArray()Gets the array.- Returns:
- The array.
-
setArray
public void setArray(byte[] array) Sets the array.- Parameters:
array
- The array.
-
hashCode
public int hashCode()Creates a hash code. -
equals
Compares two arrays.
-