Class TLongLinkedList

    • Constructor Detail

      • TLongLinkedList

        public TLongLinkedList()
      • TLongLinkedList

        public TLongLinkedList(long no_entry_value)
      • TLongLinkedList

        public TLongLinkedList(TLongList list)
    • Method Detail

      • getNoEntryValue

        public long getNoEntryValue()
      • size

        public int size()
      • isEmpty

        public boolean isEmpty()
      • add

        public boolean add(long val)
      • add

        public void add(long[] vals)
      • add

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

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

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

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

        public long get(int offset)
      • getLinkAt

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

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

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

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

        public void clear()
      • remove

        public boolean remove(long value)
      • containsAll

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

        public boolean containsAll(long[] array)
      • addAll

        public boolean addAll(Collection<? extends Long> collection)
      • addAll

        public boolean addAll(long[] array)
      • retainAll

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

        public boolean retainAll(long[] array)
      • removeAll

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

        public boolean removeAll(long[] array)
      • removeAt

        public long removeAt(int offset)
      • remove

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

        public void transformValues(TLongFunction function)
      • reverse

        public void reverse()
      • reverse

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

        public void shuffle(Random rand)
      • subList

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

        public long[] toArray()
      • toArray

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

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

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

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

        public boolean forEachDescending(TLongProcedure procedure)
      • sort

        public void sort()
      • sort

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

        public void fill(long val)
      • fill

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

        public int binarySearch(long value)
      • binarySearch

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

        public int indexOf(long value)
      • indexOf

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

        public int lastIndexOf(long value)
      • lastIndexOf

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

        public boolean contains(long value)
      • max

        public long max()
      • min

        public long min()
      • sum

        public long sum()
      • equals

        public boolean equals(Object o)
      • hashCode

        public int hashCode()
      • toString

        public String toString()