Class IntArray

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

public final class IntArray extends PrimitiveArrayBase<Integer>
An IntType array.
  • Method Details

    • empty

      public static IntArray empty()
    • of

      public static IntArray of(int... values)
    • of

      public static IntArray of(Integer... values)
    • of

      public static IntArray of(Iterable<Integer> values)
    • of

      public static IntArray of(Collection<Integer> values)
    • ofUnsafe

      public static IntArray ofUnsafe(int... values)
    • builder

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

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

      public Integer 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 IntType 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