Package jadex.commons
Class ByteArrayWrapper
- java.lang.Object
- 
- jadex.commons.ByteArrayWrapper
 
- 
 public class ByteArrayWrapper extends java.lang.ObjectWrapper to allow byte arrays as hash keys.
- 
- 
Field SummaryFields Modifier and Type Field Description protected byte[]arrayThe wrapped byte array.
 - 
Constructor SummaryConstructors Constructor Description ByteArrayWrapper()Creates the wrapper.ByteArrayWrapper(byte[] array)Creates the wrapper.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)Compares two arrays.byte[]getArray()Gets the array.inthashCode()Creates a hash code.voidsetArray(byte[] array)Sets the array.
 
- 
- 
- 
Method Detail- 
getArraypublic byte[] getArray() Gets the array.- Returns:
- The array.
 
 - 
setArraypublic void setArray(byte[] array) Sets the array.- Parameters:
- array- The array.
 
 - 
hashCodepublic int hashCode() Creates a hash code.- Overrides:
- hashCodein class- java.lang.Object
 
 - 
equalspublic boolean equals(java.lang.Object obj) Compares two arrays.- Overrides:
- equalsin class- java.lang.Object
 
 
- 
 
-