Class FloatArray

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

public final class FloatArray extends PrimitiveArrayBase<Float>
A FloatType array.
  • Method Details

    • empty

      public static FloatArray empty()
    • of

      public static FloatArray of(float... values)
    • of

      public static FloatArray of(Float... values)
    • of

      public static FloatArray of(Iterable<Float> values)
    • of

      public static FloatArray of(Collection<Float> values)
    • ofUnsafe

      public static FloatArray ofUnsafe(float... values)
    • builder

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

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

      public Float 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 FloatType 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