Class LongArray

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

public final class LongArray extends PrimitiveArrayBase<Long>
A LongType array.
  • Method Details

    • empty

      public static LongArray empty()
    • of

      public static LongArray of(long... values)
    • of

      public static LongArray of(Long... values)
    • of

      public static LongArray of(Iterable<Long> values)
    • of

      public static LongArray of(Collection<Long> values)
    • ofUnsafe

      public static LongArray ofUnsafe(long... values)
    • builder

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

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

      public Long 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 LongType 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