Class TCharLinkedList

    • Constructor Detail

      • TCharLinkedList

        public TCharLinkedList()
      • TCharLinkedList

        public TCharLinkedList(char no_entry_value)
      • TCharLinkedList

        public TCharLinkedList(TCharList list)
    • Method Detail

      • getNoEntryValue

        public char getNoEntryValue()
      • size

        public int size()
      • isEmpty

        public boolean isEmpty()
      • add

        public boolean add(char val)
      • add

        public void add(char[] vals)
      • add

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

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

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

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

        public char get(int offset)
      • getLinkAt

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

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

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

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

        public void clear()
      • remove

        public boolean remove(char value)
      • containsAll

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

        public boolean containsAll(char[] array)
      • addAll

        public boolean addAll(char[] array)
      • retainAll

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

        public boolean retainAll(char[] array)
      • removeAll

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

        public boolean removeAll(char[] array)
      • removeAt

        public char removeAt(int offset)
      • remove

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

        public void transformValues(TCharFunction function)
      • reverse

        public void reverse()
      • reverse

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

        public void shuffle(Random rand)
      • subList

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

        public char[] toArray()
      • toArray

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

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

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

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

        public boolean forEachDescending(TCharProcedure procedure)
      • sort

        public void sort()
      • sort

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

        public void fill(char val)
      • fill

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

        public int binarySearch(char value)
      • binarySearch

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

        public int indexOf(char value)
      • indexOf

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

        public int lastIndexOf(char value)
      • lastIndexOf

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

        public boolean contains(char value)
      • max

        public char max()
      • min

        public char min()
      • sum

        public char sum()
      • equals

        public boolean equals(Object o)
      • hashCode

        public int hashCode()
      • toString

        public String toString()