Class TByteLinkedList

    • Constructor Detail

      • TByteLinkedList

        public TByteLinkedList()
      • TByteLinkedList

        public TByteLinkedList(byte no_entry_value)
      • TByteLinkedList

        public TByteLinkedList(TByteList list)
    • Method Detail

      • getNoEntryValue

        public byte getNoEntryValue()
      • size

        public int size()
      • isEmpty

        public boolean isEmpty()
      • add

        public boolean add(byte val)
      • add

        public void add(byte[] vals)
      • add

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

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

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

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

        public byte get(int offset)
      • getLinkAt

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

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

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

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

        public void clear()
      • remove

        public boolean remove(byte value)
      • containsAll

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

        public boolean containsAll(byte[] array)
      • addAll

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

        public boolean addAll(byte[] array)
      • retainAll

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

        public boolean retainAll(byte[] array)
      • removeAll

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

        public boolean removeAll(byte[] array)
      • removeAt

        public byte removeAt(int offset)
      • remove

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

        public void transformValues(TByteFunction function)
      • reverse

        public void reverse()
      • reverse

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

        public void shuffle(Random rand)
      • subList

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

        public byte[] toArray()
      • toArray

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

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

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

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

        public boolean forEachDescending(TByteProcedure procedure)
      • sort

        public void sort()
      • sort

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

        public void fill(byte val)
      • fill

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

        public int binarySearch(byte value)
      • binarySearch

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

        public int indexOf(byte value)
      • indexOf

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

        public int lastIndexOf(byte value)
      • lastIndexOf

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

        public boolean contains(byte value)
      • max

        public byte max()
      • min

        public byte min()
      • sum

        public byte sum()
      • equals

        public boolean equals(Object o)
      • hashCode

        public int hashCode()
      • toString

        public String toString()