Package org.drasyl.util
Class ImmutableByteArray
java.lang.Object
org.drasyl.util.ImmutableByteArray
Immutable byte array implementation, that do not allow any modifications to the original input.
-
Method Summary
-
Method Details
-
of
Copy the givenarray
and stores it as immutable object.- Parameters:
array
- the array to copy- Returns:
- an immutable byte array
-
getArray
public byte[] getArray() -
size
public int size() -
equals
-
hashCode
public int hashCode() -
toString
-