Class ShortArray

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

public final class ShortArray extends PrimitiveArrayBase<Short>
A ShortType array.
  • Method Details

    • empty

      public static ShortArray empty()
    • of

      public static ShortArray of(short... values)
    • of

      public static ShortArray of(Short... values)
    • of

      public static ShortArray of(Iterable<Short> values)
    • of

      public static ShortArray of(Collection<Short> values)
    • ofUnsafe

      public static ShortArray ofUnsafe(short... values)
    • builder

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

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

      public Short 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 ShortType 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