Interface ChainStorage<E,​K,​V,​EN extends ChainStorage.Entry<E,​K,​V,​EN>>

    • Method Detail

      • appendEntry

        void appendEntry​(EN entry)
      • prependEntry

        void prependEntry​(EN entry)
      • clear

        void clear()
      • size

        long size()
      • consolidate

        long consolidate()
        Removes all empty entries from the passed chain and returns the number of removed entries.
        Returns:
        the number of removed entries.
      • hasVolatileElements

        boolean hasVolatileElements()
      • containsNull

        boolean containsNull()
      • rngContainsNull

        boolean rngContainsNull​(long offset,
                                long length)
      • containsId

        boolean containsId​(E element)
      • rngContainsId

        boolean rngContainsId​(long offset,
                              long length,
                              E element)
      • contains

        boolean contains​(E element)
      • contains

        boolean contains​(E sample,
                         Equalator<? super E> equalator)
      • rngContains

        boolean rngContains​(long offset,
                            long length,
                            E element)
      • containsAll

        boolean containsAll​(E[] elements,
                            int elementsOffset,
                            int elementsLength)
      • rngContainsAll

        boolean rngContainsAll​(long offset,
                               long length,
                               E[] elements,
                               int elementsOffset,
                               int elementsLength)
      • rngContainsAll

        boolean rngContainsAll​(long offset,
                               long length,
                               XGettingCollection<? extends E> elements)
      • containsSearched

        boolean containsSearched​(Predicate<? super E> predicate)
      • rngContainsSearched

        boolean rngContainsSearched​(long offset,
                                    long length,
                                    Predicate<? super E> predicate)
      • appliesAll

        boolean appliesAll​(Predicate<? super E> predicate)
      • rngAppliesAll

        boolean rngAppliesAll​(long offset,
                              long length,
                              Predicate<? super E> predicate)
      • count

        long count​(E element)
      • count

        long count​(E sample,
                   Equalator<? super E> equalator)
      • rngCount

        long rngCount​(long offset,
                      long length,
                      E element)
      • count

        long count​(Predicate<? super E> predicate)
      • rngCount

        long rngCount​(long offset,
                      long length,
                      Predicate<? super E> predicate)
      • copyTo

        <C extends Consumer<? super E>> C copyTo​(C target)
      • rngCopyTo

        <C extends Consumer<? super E>> C rngCopyTo​(long offset,
                                                    long length,
                                                    C target)
      • copySelection

        <C extends Consumer<? super E>> C copySelection​(C target,
                                                        long[] indices)
      • copyToArray

        int copyToArray​(long offset,
                        int length,
                        Object[] target,
                        int targetOffset)
      • copyTo

        <C extends Consumer<? super E>> C copyTo​(C target,
                                                 Predicate<? super E> predicate)
      • rngCopyTo

        <C extends Consumer<? super E>> C rngCopyTo​(long offset,
                                                    long length,
                                                    C target,
                                                    Predicate<? super E> predicate)
      • toArray

        E[] toArray​(Class<E> type)
      • rngToArray

        Object[] rngToArray​(long offset,
                            int length)
      • rngToArray

        E[] rngToArray​(long offset,
                       int length,
                       Class<E> type)
      • first

        E first()
      • last

        E last()
      • get

        E get​(long index)
      • seek

        E seek​(E sample)
      • seek

        E seek​(E sample,
               Equalator<? super E> equalator)
      • rngSearch

        E rngSearch​(long offset,
                    long length,
                    Predicate<? super E> predicate)
      • rngMin

        E rngMin​(long offset,
                 long length,
                 Comparator<? super E> comparator)
      • rngMax

        E rngMax​(long offset,
                 long length,
                 Comparator<? super E> comparator)
      • iterate

        void iterate​(Consumer<? super E> procedure)
      • join

        <A> void join​(BiConsumer<? super E,​A> joiner,
                      A aggregate)
      • rngIterate

        void rngIterate​(long offset,
                        long length,
                        Consumer<? super E> procedure)
      • rngIterateIndexed

        void rngIterateIndexed​(long offset,
                               long length,
                               IndexedAcceptor<? super E> procedure)
      • indexOf

        long indexOf​(E element)
      • indexOf

        long indexOf​(E sample,
                     Equalator<? super E> equalator)
      • rngIndexOf

        long rngIndexOf​(long offset,
                        long length,
                        E element)
      • rngIndexOf

        long rngIndexOf​(long offset,
                        long length,
                        E sample,
                        Equalator<? super E> equalator)
      • indexOf

        long indexOf​(Predicate<? super E> predicate)
      • rngIndexOf

        long rngIndexOf​(long offset,
                        long length,
                        Predicate<? super E> predicate)
      • minIndex

        long minIndex​(Comparator<? super E> comparator)
      • maxIndex

        long maxIndex​(Comparator<? super E> comparator)
      • rngMinIndex

        long rngMinIndex​(long offset,
                         long length,
                         Comparator<? super E> comparator)
      • rngMaxIndex

        long rngMaxIndex​(long offset,
                         long length,
                         Comparator<? super E> comparator)
      • scan

        long scan​(Predicate<? super E> predicate)
      • rngScan

        long rngScan​(long offset,
                     long length,
                     Predicate<? super E> predicate)
      • hasDistinctValues

        boolean hasDistinctValues()
      • hasDistinctValues

        boolean hasDistinctValues​(Equalator<? super E> equalator)
      • distinct

        <C extends Consumer<? super E>> C distinct​(C target)
      • distinct

        <C extends Consumer<? super E>> C distinct​(C target,
                                                   Equalator<? super E> equalator)
      • rngDistinct

        <C extends Consumer<? super E>> C rngDistinct​(long offset,
                                                      long length,
                                                      C target)
      • rngDistinct

        <C extends Consumer<? super E>> C rngDistinct​(long offset,
                                                      long length,
                                                      C target,
                                                      Equalator<? super E> equalator)
      • rngAppendTo

        VarString rngAppendTo​(long offset,
                              long length,
                              VarString vc,
                              char separator)
      • remove

        E remove​(long index)
      • removeRange

        void removeRange​(long offset,
                         long length)
      • retainRange

        void retainRange​(long offset,
                         long length)
      • removeSelection

        long removeSelection​(long... indices)
        Removes all entries at the indices (offsets) given in the passed int array.

        Note that the indices array gets presorted to increase algorithm performance. If the original int array shall be unchanged, a clone must be passed.

        Parameters:
        indices - the indices (offsets) of the entries to be removed.
        Returns:
        the amount of actually removed entries.
      • removeNull

        long removeNull()
      • rngRemoveNull

        long rngRemoveNull​(long offset,
                           long length)
      • retrieve

        E retrieve​(E element)
      • retrieve

        E retrieve​(E sample,
                   Equalator<? super E> equalator)
      • retrieve

        E retrieve​(Predicate<? super E> predicate)
      • rngRetrieve

        E rngRetrieve​(long offset,
                      long length,
                      E element)
      • rngRetrieve

        E rngRetrieve​(long offset,
                      long length,
                      E sample,
                      Equalator<? super E> equalator)
      • removeOne

        boolean removeOne​(E element)
      • removeOne

        boolean removeOne​(E sample,
                          Equalator<? super E> equalator)
      • remove

        long remove​(E element)
      • remove

        long remove​(E sample,
                    Equalator<? super E> equalator)
      • rngRemove

        long rngRemove​(long offset,
                       long length,
                       E element)
      • removeAll

        long removeAll​(E[] elements,
                       int elementsOffset,
                       int elementsLength)
      • rngRemoveAll

        long rngRemoveAll​(long offset,
                          long length,
                          E[] elements,
                          int elementsOffset,
                          int elementsLength)
      • rngRemoveAll

        long rngRemoveAll​(long offset,
                          long length,
                          XGettingCollection<? extends E> elements)
      • removeDuplicates

        long removeDuplicates()
      • removeDuplicates

        long removeDuplicates​(Equalator<? super E> equalator)
      • rngRemoveDuplicates

        long rngRemoveDuplicates​(long offset,
                                 long length)
      • rngRemoveDuplicates

        long rngRemoveDuplicates​(long offset,
                                 long length,
                                 Equalator<? super E> equalator)
      • reduce

        long reduce​(Predicate<? super E> predicate)
      • rngReduce

        long rngReduce​(long offset,
                       long length,
                       Predicate<? super E> predicate)
      • retainAll

        long retainAll​(E[] elements,
                       int elementsOffset,
                       int elementsLength)
      • rngRetainAll

        long rngRetainAll​(long offset,
                          long length,
                          E[] elements,
                          int elementsOffset,
                          int elementsLength)
      • rngRetainAll

        long rngRetainAll​(long offset,
                          long length,
                          XGettingCollection<? extends E> elements)
      • process

        long process​(Consumer<? super E> procedure)
      • rngProcess

        long rngProcess​(long offset,
                        long length,
                        Consumer<? super E> procedure)
      • moveRange

        long moveRange​(long offset,
                       long length,
                       Consumer<? super E> target)
      • moveSelection

        long moveSelection​(Consumer<? super E> target,
                           long... indices)
      • rngMoveTo

        long rngMoveTo​(long offset,
                       long length,
                       Consumer<? super E> target,
                       Predicate<? super E> predicate)
      • shiftTo

        void shiftTo​(long sourceIndex,
                     long targetIndex)
      • shiftTo

        void shiftTo​(long sourceIndex,
                     long targetIndex,
                     long length)
      • shiftBy

        void shiftBy​(long sourceIndex,
                     long distance)
      • shiftBy

        void shiftBy​(long sourceIndex,
                     long distance,
                     long length)
      • swap

        void swap​(long indexA,
                  long indexB)
      • swap

        void swap​(long indexA,
                  long indexB,
                  long length)
      • reverse

        void reverse()
      • rngReverse

        void rngReverse​(long offset,
                        long length)
      • sort

        void sort​(Comparator<? super E> comparator)
      • rngSort

        void rngSort​(long offset,
                     long length,
                     Comparator<? super E> comparator)
      • isSorted

        boolean isSorted​(Comparator<? super E> comparator)
      • rngIsSorted

        boolean rngIsSorted​(long offset,
                            long length,
                            Comparator<? super E> comparator)
      • shuffle

        void shuffle()
      • rngShuffle

        void rngShuffle​(long offset,
                        long length)
      • set

        void set​(long offset,
                 E[] elements)
      • set

        void set​(long offset,
                 E[] elements,
                 int elementsOffset,
                 int elementsLength)
      • fill

        void fill​(long offset,
                  long length,
                  E element)
      • replaceOne

        long replaceOne​(E element,
                        E replacement)
      • rngReplaceOne

        long rngReplaceOne​(long offset,
                           long length,
                           E element,
                           E replacement)
      • replace

        long replace​(E element,
                     E replacement)
      • rngReplace

        long rngReplace​(long offset,
                        long length,
                        E element,
                        E replacement)
      • rngReplace

        long rngReplace​(long offset,
                        long length,
                        E sample,
                        Equalator<? super E> equalator,
                        E replacement)
      • replaceAll

        long replaceAll​(E[] elements,
                        int elementsOffset,
                        int elementsLength,
                        E replacement)
      • rngReplaceAll

        long rngReplaceAll​(long offset,
                           long length,
                           E[] elements,
                           int elementsOffset,
                           int elementsLength,
                           E replacement)
      • rngReplaceAll

        long rngReplaceAll​(long offset,
                           long length,
                           XGettingCollection<? extends E> elements,
                           E replacement)
      • substitute

        long substitute​(Function<E,​E> mapper)
      • rngSubstitute

        long rngSubstitute​(long offset,
                           long length,
                           Function<E,​E> mapper)
      • rngSubstitute

        long rngSubstitute​(long offset,
                           long length,
                           Predicate<? super E> predicate,
                           Function<E,​E> mapper)
      • replaceOneBy

        long replaceOneBy​(Predicate<? super E> predicate,
                          E substitute)
      • rngReplaceOneBy

        long rngReplaceOneBy​(long offset,
                             long length,
                             Predicate<? super E> predicate,
                             E substitute)
      • replaceBy

        long replaceBy​(Predicate<? super E> predicate,
                       E substitute)
      • rngReplaceOne

        long rngReplaceOne​(long offset,
                           long length,
                           Predicate<? super E> predicate,
                           E substitute)