Class TDoubleLinkedList

    • Constructor Detail

      • TDoubleLinkedList

        public TDoubleLinkedList()
      • TDoubleLinkedList

        public TDoubleLinkedList(double no_entry_value)
      • TDoubleLinkedList

        public TDoubleLinkedList(TDoubleList list)
    • Method Detail

      • getNoEntryValue

        public double getNoEntryValue()
      • size

        public int size()
      • isEmpty

        public boolean isEmpty()
      • add

        public boolean add(double val)
      • add

        public void add(double[] vals)
      • add

        public void add(double[] vals,
                        int offset,
                        int length)
      • insert

        public void insert(int offset,
                           double value)
      • insert

        public void insert(int offset,
                           double[] values)
      • insert

        public void insert(int offset,
                           double[] values,
                           int valOffset,
                           int len)
      • get

        public double get(int offset)
      • getLinkAt

        public com.slimjars.dist.gnu.trove.list.linked.TDoubleLinkedList.TDoubleLink getLinkAt(int offset)
        Returns the link at the given offset.

        A simple bisection criteria is used to keep the worst case complexity equal to O(n/2) where n = size(). Simply start from head of list or tail depending on offset and list size.
        Parameters:
        offset - of the link
        Returns:
        link or null if non-existent
      • set

        public double set(int offset,
                          double val)
      • set

        public void set(int offset,
                        double[] values)
      • set

        public void set(int offset,
                        double[] values,
                        int valOffset,
                        int length)
      • replace

        public double replace(int offset,
                              double val)
      • clear

        public void clear()
      • remove

        public boolean remove(double value)
      • containsAll

        public boolean containsAll(Collection<?> collection)
      • containsAll

        public boolean containsAll(double[] array)
      • addAll

        public boolean addAll(double[] array)
      • retainAll

        public boolean retainAll(Collection<?> collection)
      • retainAll

        public boolean retainAll(double[] array)
      • removeAll

        public boolean removeAll(Collection<?> collection)
      • removeAll

        public boolean removeAll(double[] array)
      • removeAt

        public double removeAt(int offset)
      • remove

        public void remove(int offset,
                           int length)
      • reverse

        public void reverse()
      • reverse

        public void reverse(int from,
                            int to)
      • shuffle

        public void shuffle(Random rand)
      • subList

        public TDoubleList subList(int begin,
                                   int end)
      • toArray

        public double[] toArray()
      • toArray

        public double[] toArray(int offset,
                                int len)
      • toArray

        public double[] toArray(double[] dest)
      • toArray

        public double[] toArray(double[] dest,
                                int offset,
                                int len)
      • toArray

        public double[] toArray(double[] dest,
                                int source_pos,
                                int dest_pos,
                                int len)
      • forEachDescending

        public boolean forEachDescending(TDoubleProcedure procedure)
      • sort

        public void sort()
      • sort

        public void sort(int fromIndex,
                         int toIndex)
      • fill

        public void fill(double val)
      • fill

        public void fill(int fromIndex,
                         int toIndex,
                         double val)
      • binarySearch

        public int binarySearch(double value)
      • binarySearch

        public int binarySearch(double value,
                                int fromIndex,
                                int toIndex)
      • indexOf

        public int indexOf(double value)
      • indexOf

        public int indexOf(int offset,
                           double value)
      • lastIndexOf

        public int lastIndexOf(double value)
      • lastIndexOf

        public int lastIndexOf(int offset,
                               double value)
      • contains

        public boolean contains(double value)
      • max

        public double max()
      • min

        public double min()
      • sum

        public double sum()
      • equals

        public boolean equals(Object other)
      • hashCode

        public int hashCode()
      • toString

        public String toString()