Class BooleanArray

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

public final class BooleanArray extends PrimitiveArrayBase<Boolean>
A BooleanType array.
  • Method Details

    • empty

      public static BooleanArray empty()
    • of

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

      public static BooleanArray of(Boolean... values)
    • of

      public static BooleanArray of(Iterable<Boolean> values)
    • of

      public static BooleanArray of(Collection<Boolean> values)
    • ofUnsafe

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

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

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

      public final Boolean 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 BooleanType 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