Class TFloatLinkedList

    • Constructor Detail

      • TFloatLinkedList

        public TFloatLinkedList()
      • TFloatLinkedList

        public TFloatLinkedList(float no_entry_value)
      • TFloatLinkedList

        public TFloatLinkedList(TFloatList list)
    • Method Detail

      • getNoEntryValue

        public float getNoEntryValue()
      • size

        public int size()
      • isEmpty

        public boolean isEmpty()
      • add

        public boolean add(float val)
      • add

        public void add(float[] vals)
      • add

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

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

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

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

        public float get(int offset)
      • getLinkAt

        public com.slimjars.dist.gnu.trove.list.linked.TFloatLinkedList.TFloatLink 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 float set(int offset,
                         float val)
      • set

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

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

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

        public void clear()
      • remove

        public boolean remove(float value)
      • containsAll

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

        public boolean containsAll(float[] array)
      • addAll

        public boolean addAll(float[] array)
      • retainAll

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

        public boolean retainAll(float[] array)
      • removeAll

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

        public boolean removeAll(float[] array)
      • removeAt

        public float removeAt(int offset)
      • remove

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

        public void transformValues(TFloatFunction function)
      • reverse

        public void reverse()
      • reverse

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

        public void shuffle(Random rand)
      • subList

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

        public float[] toArray()
      • toArray

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

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

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

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

        public boolean forEachDescending(TFloatProcedure procedure)
      • sort

        public void sort()
      • sort

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

        public void fill(float val)
      • fill

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

        public int binarySearch(float value)
      • binarySearch

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

        public int indexOf(float value)
      • indexOf

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

        public int lastIndexOf(float value)
      • lastIndexOf

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

        public boolean contains(float value)
      • max

        public float max()
      • min

        public float min()
      • sum

        public float sum()
      • equals

        public boolean equals(Object other)
      • hashCode

        public int hashCode()
      • toString

        public String toString()