Class ByteArray

All Implemented Interfaces:
Array<Byte>, PrimitiveArray<Byte>

public final class ByteArray extends PrimitiveArrayBase<Byte>
A ByteType array.
  • Method Details

    • empty

      public static ByteArray empty()
    • of

      public static ByteArray of(byte... values)
    • of

      public static ByteArray of(Byte... values)
    • of

      public static ByteArray of(Iterable<Byte> values)
    • of

      public static ByteArray of(Collection<Byte> values)
    • ofUnsafe

      public static ByteArray ofUnsafe(byte... values)
    • builder

      public static ByteArray.Builder builder(int initialSize)
    • values

      public final byte[] values()
      The raw bytes. Must not be modified.
      Returns:
      the bytes, do not modify
    • value

      public Byte value(int index)
      Returns:
      the boxed value at index
    • isNull

      public boolean isNull(int index)
      Returns:
      whether the value at index is null
    • size

      public final int size()
    • componentType

      public final ByteType componentType()
    • walk

      public final <R> R walk(PrimitiveArray.Visitor<R> visitor)
    • equals

      public final boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object