Class DoubleArrayList

java.lang.Object
net.thevpc.common.collections.DoubleArrayList

public class DoubleArrayList extends Object
  • Constructor Details

    • DoubleArrayList

      public DoubleArrayList(int initialSize)
    • DoubleArrayList

      public DoubleArrayList()
    • DoubleArrayList

      public DoubleArrayList(double[] values, int offset, int size)
    • DoubleArrayList

      public DoubleArrayList(double[] values)
    • DoubleArrayList

      public DoubleArrayList(double[] values, int size)
  • Method Details

    • add

      public void add(int index, double value)
    • removeAll

      public int removeAll(int offset, int count)
      Parameters:
      offset -
      count -
      Returns:
      number of elements removed
    • remove

      public double remove(int index)
    • addAll

      public void addAll(DoubleArrayList values)
    • addAll

      public void addAll(double... values)
    • insertAll

      public void insertAll(int offset, double... values)
    • subList

      public DoubleArrayList subList(int offset, int count)
    • replaceSubList

      public void replaceSubList(int offset, int count, double... replacement)
    • add

      public void add(double value)
    • trimToSize

      public void trimToSize()
    • copy

      public DoubleArrayList copy()
    • toArray

      public double[] toArray()
    • toLongCastArrayList

      public LongArrayList toLongCastArrayList()
    • toDoubleArray

      public Double[] toDoubleArray()
    • toDoubleList

      public List<Double> toDoubleList()
    • size

      public int size()
    • get

      public double get(int index)
    • set

      public double set(int index, double element)
    • indexOf

      public int indexOf(double o)
    • contains

      public boolean contains(double o)
    • indexOf

      public int indexOf(double o, int from)
    • indexOf

      public int indexOf(double o, int from, int to)
    • contains

      public boolean contains(double o, int from)
    • contains

      public boolean contains(double o, int from, int to)
    • lastIndexOf

      public int lastIndexOf(double o)
    • lastIndexOf

      public int lastIndexOf(double o, int from)
    • lastIndexOf

      public int lastIndexOf(double o, int from, int to)
    • toStringDebug

      public String toStringDebug()
    • getCommittedSize

      public int getCommittedSize()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • format

      public String format(String first, String sep, String last)
    • grow

      public void grow(int minCapacity)
    • ensureSize

      public void ensureSize(int size)