Class ChainStorageStrong<E,​K,​V,​EN extends AbstractChainEntry<E,​K,​V,​EN>>

    • Method Detail

      • appendEntry

        public final void appendEntry​(EN entry)
      • prependEntry

        public final void prependEntry​(EN entry)
      • clear

        public void clear()
      • shiftBy

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

        public final void shiftBy​(long sourceIndex,
                                  long distance,
                                  long length)
      • shiftTo

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

        public final void shiftTo​(long sourceIndex,
                                  long targetIndex,
                                  long length)
      • removeRange

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

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

        public final 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. Pass a clone if the original int array shall be unchanged.

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

        public final Iterator<E> iterator()
      • size

        public final long size()
      • consolidate

        public final long consolidate()
        Description copied from interface: ChainStorage
        Removes all empty entries from the passed chain and returns the number of removed entries.
        Returns:
        the number of removed entries.
      • hasVolatileElements

        public final boolean hasVolatileElements()
      • getReferenceType

        public final ReferenceType getReferenceType()
      • containsNull

        public final boolean containsNull()
      • rngContainsNull

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

        public final boolean containsId​(E element)
      • rngContainsId

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

        public final boolean contains​(E element)
      • contains

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

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

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

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

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

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

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

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

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

        public final long count​(E element)
      • count

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

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

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

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

        public final <C extends Consumer<? super E>> C rngIntersect​(long offset,
                                                                    long length,
                                                                    XGettingCollection<? extends E> samples,
                                                                    Equalator<? super E> equalator,
                                                                    C target)
      • copyTo

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

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

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

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

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

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

        public final Object[] toArray()
      • toArray

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

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

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

        public final E first()
      • last

        public final E last()
      • get

        public final E get​(long index)
      • seek

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

        public final E seek​(E sample)
      • search

        public final E search​(Predicate<? super E> predicate)
      • rngSearch

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

        public final E min​(Comparator<? super E> comparator)
      • max

        public final E max​(Comparator<? super E> comparator)
      • rngMin

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

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

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

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

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

        public final void iterateIndexed​(IndexedAcceptor<? super E> procedure)
      • rngIterateIndexed

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

        public final void iterate​(Predicate<? super E> predicate,
                                  Consumer<? super E> procedure)
      • indexOf

        public final long indexOf​(E element)
      • indexOf

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

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

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

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

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

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

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

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

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

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

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

        public final boolean hasDistinctValues()
      • hasDistinctValues

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

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

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

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

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

        public final VarString rngAppendTo​(long offset,
                                           long length,
                                           VarString vc)
      • rngAppendTo

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

        public final E remove​(long index)
      • removeNull

        public final long removeNull()
      • rngRemoveNull

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

        public final E retrieve​(E element)
      • retrieve

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

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

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

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

        public final boolean removeOne​(E element)
      • removeOne

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

        public final long remove​(E element)
      • remove

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

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

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

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

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

        public final long removeDuplicates()
      • removeDuplicates

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

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

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

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

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

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

        public final int retainAll​(E[] samples,
                                   int samplesOffset,
                                   int samplesLength,
                                   Equalator<? super E> equalator)
      • rngRetainAll

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

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

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

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

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

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

        public final long moveTo​(Consumer<? super E> target,
                                 Predicate<? super E> predicate)
      • rngMoveTo

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        public final long replaceAll​(XGettingCollection<? extends E> elements,
                                     E replacement)
      • rngReplaceAll

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

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

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

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

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

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

        public final long substitute​(Predicate<? super E> predicate,
                                     Function<E,​E> mapper)
      • rngSubstitute

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

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

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

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

        public final void reverse()
      • rngReverse

        public final void rngReverse​(long offset,
                                     long length)
      • shuffle

        public final void shuffle()
      • rngShuffle

        public final void rngShuffle​(long offset,
                                     long length)