Class ImmutableByteArray


  • public final class ImmutableByteArray
    extends Object
    Immutable byte array implementation, that do not allow any modifications to the original input.
    • Method Detail

      • of

        public static ImmutableByteArray of​(byte[] array)
        Copy the given array 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()
      • isEmpty

        public boolean isEmpty()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object