Class DoubleArray

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

public final class DoubleArray extends PrimitiveArrayBase<Double>
A DoubleType array.
  • Method Details

    • empty

      public static DoubleArray empty()
    • of

      public static DoubleArray of(double... values)
    • of

      public static DoubleArray of(Double... values)
    • of

      public static DoubleArray of(Iterable<Double> values)
    • of

      public static DoubleArray of(Collection<Double> values)
    • ofUnsafe

      public static DoubleArray ofUnsafe(double... values)
    • builder

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

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

      public Double 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 DoubleType 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