Package one.microstream.collections
Class Abstract_intArrayStorage
- java.lang.Object
-
- one.microstream.collections.Abstract_intArrayStorage
-
public abstract class Abstract_intArrayStorage extends Object
Abstract class with static delegate array logic methods to be used as pseudo-array-inherent methods.The passed array and size are handled as pseudo implementation details and thus are never sanity-checked.
See
ChainStorage
and for exampleChainStorageStrong
as a comparable actual logic implementation without delegate-pseudo-character.
-
-
Constructor Summary
Constructors Constructor Description Abstract_intArrayStorage()
-
Method Summary
Modifier and Type Method Description static int
addAll(int[] data, int size, int[] elements, int srcIndex, int srcLength, _intPredicate predicate)
static int
addAll(int[] data, int size, int[] elements, int srcIndex, int srcLength, _intPredicate predicate, int skip, Integer limit)
static VarString
appendTo(int[] data, int size, VarString vc)
static VarString
appendTo(int[] data, int size, VarString vc, char separator)
static VarString
appendTo(int[] data, int size, VarString vc, String separator)
static VarString
appendTo(int[] data, int size, VarString vc, BiConsumer<VarString,Integer> appender)
static VarString
appendTo(int[] data, int size, VarString vc, BiConsumer<VarString,Integer> appender, char separator)
static VarString
appendTo(int[] data, int size, VarString vc, BiConsumer<VarString,Integer> appender, String separator)
static boolean
appliesAll(int[] data, int size, _intPredicate predicate)
static int
arrayHashCode(int[] data, int size)
static int
checkIterationDirection(int size, int offset, int length)
static boolean
contains(int[] data, int size, int element)
static boolean
contains(int[] data, int size, _intPredicate predicate)
static boolean
containsAll(int[] data, int size, int[] elements, int elementsOffset, int elementsLength)
static boolean
containsSearched(int[] data, int size, _intPredicate predicate)
static <C extends _intCollecting>
CcopySelection(int[] data, int size, long[] indices, C target)
static <C extends _intCollecting>
CcopyTo(int[] data, int size, C target)
static <C extends _intCollecting>
CcopyTo(int[] data, int size, C target, _intPredicate predicate)
static <C extends _intCollecting>
CcopyTo(int[] data, int size, C target, _intPredicate predicate, int skip, Integer limit)
static int
count(int[] data, int size, int element)
static int
count(int[] data, int size, _intPredicate predicate)
static void
fill(int[] data, int size, int offset, int length, int element)
static int
indexOf(int[] data, int size, int element)
static int
indexOf(int[] data, int size, _intPredicate predicate)
static boolean
isSorted(int[] data, int size, boolean ascending)
static boolean
isSortedAscending(int[] data, int size)
static boolean
isSortedDescending(int[] data, int size)
static void
iterate(int[] data, int size, _intIndexProcedure procedure)
static void
iterate(int[] data, int size, _intPredicate predicate, _intProcedure procedure)
static void
iterate(int[] data, int size, _intPredicate predicate, _intProcedure procedure, int skip, Integer limit)
static void
iterate(int[] data, int size, _intProcedure procedure)
static int
lastIndexOf(int[] data, int size, _intPredicate predicate)
static int
max(int[] data, int size)
static int
min(int[] data, int size)
static int
modify(int[] data, int size, _intFunction mapper)
static int
modify(int[] data, int size, _intPredicate predicate, _intFunction mapper)
static int
moveSelection(int[] data, int size, long[] indices, _intCollecting target, int removeMarker)
static int
moveTo(int[] data, int size, _intCollecting target, _intPredicate predicate, int removeMarker)
static int
moveTo(int[] data, int size, _intCollecting target, _intPredicate predicate, int skip, Integer limit, int removeMarker)
static int
process(int[] data, int size, _intProcedure procedure, int removeMarker)
static int
reduce(int[] data, int size, _intPredicate predicate, int removeMarker)
static int
reduce(int[] data, int size, _intPredicate predicate, int skip, Integer limit, int removeMarker)
static int
remove(int[] data, int size, int element, int skip, Integer limit, int removeMarker)
static int
removeAll(int[] data, int size, _intList elements, int skip, Integer limit, int removeMarker)
static int
removeDuplicates(int[] data, int size, int removeMarker)
static boolean
removeOne(int[] data, int size, int element)
static int
removeRange(int[] data, int size, int offset, int length)
static int
removeSelection(int[] data, int size, int[] indices, int removeMarker)
static int
replace(int[] data, int size, int oldElement, int newElement)
static int
replace(int[] data, int size, int oldElement, int newElement, int skip, Integer limit)
static int
replace(int[] data, int size, _intPredicate predicate, int newElement, int skip, Integer limit)
static int
replaceAll(int[] data, int size, _intList oldElements, int newElement, int skip, Integer limit)
static boolean
replaceOne(int[] data, int size, int oldElement, int newElement)
static int
retainAll(int[] data, int size, _intList elements, int removeMarker)
static int
retrieve(int[] data, int size, int element, int notFoundMarker)
static int
retrieve(int[] data, int size, _intPredicate predicate, int notFoundMarker)
static void
reverse(int[] data, int size)
static VarString
rngAppendTo(int[] data, int size, int offset, int length, VarString vc)
static VarString
rngAppendTo(int[] data, int size, int offset, int length, VarString vc, char separator)
static VarString
rngAppendTo(int[] data, int size, int offset, int length, VarString vc, String separator)
static VarString
rngAppendTo(int[] data, int size, int offset, int length, VarString vc, BiConsumer<VarString,Integer> appender)
static VarString
rngAppendTo(int[] data, int size, int offset, int length, VarString vc, BiConsumer<VarString,Integer> appender, char separator)
static VarString
rngAppendTo(int[] data, int size, int offset, int length, VarString vc, BiConsumer<VarString,Integer> appender, String separator)
static boolean
rngAppliesAll(int[] data, int size, int offset, int length, _intPredicate predicate)
static boolean
rngContains(int[] data, int size, int offset, int length, int element)
static boolean
rngContains(int[] data, int size, int offset, int length, _intPredicate predicate)
static boolean
rngContainsAll(int[] data, int size, int offset, int length, _intList elements)
static int[]
rngCopyTo(int[] data, int size, int offset, int length, int[] target, int targetOffset)
static <C extends _intCollecting>
CrngCopyTo(int[] data, int size, int offset, int length, C target)
static <C extends _intCollecting>
CrngCopyTo(int[] data, int size, int offset, int length, C target, _intPredicate predicate)
static <C extends _intCollecting>
CrngCopyTo(int[] data, int size, int offset, int length, C target, _intPredicate predicate, int skip, Integer limit)
static int
rngCount(int[] data, int size, int offset, int length, int element)
static int
rngCount(int[] data, int size, int offset, int length, _intPredicate predicate)
static boolean
rngHasUniqueValues(int[] data, int size, int offset, int length)
static int
rngIndexOf(int[] data, int size, int offset, int length, _intPredicate predicate)
static int
rngIndexOF(int[] data, int size, int offset, int length, int element)
static void
rngIterate(int[] data, int size, int offset, int length, _intIndexProcedure procedure)
static void
rngIterate(int[] data, int size, int offset, int length, _intPredicate predicate, _intProcedure procedure)
static void
rngIterate(int[] data, int size, int offset, int length, _intPredicate predicate, _intProcedure procedure, int skip, Integer limit)
static void
rngIterate(int[] data, int size, int offset, int length, _intProcedure procedure)
static int
rngModify(int[] data, int size, int offset, int length, _intFunction mapper)
static int
rngMoveTo(int[] data, int size, int offset, int length, _intCollecting target, _intPredicate predicate, int removeMarker)
static int
rngMoveTo(int[] data, int size, int offset, int length, _intCollecting target, _intPredicate predicate, int skip, Integer limit, int removeMarker)
static int
rngProcess(int[] data, int size, int offset, int length, _intProcedure procedure, int removeMarker)
static int
rngReduce(int[] data, int size, int offset, int length, _intPredicate predicate, int removeMarker)
static int
rngReduce(int[] data, int size, int offset, int length, _intPredicate predicate, int skip, Integer limit, int removeMarker)
static int
rngRemove(int[] data, int size, int offset, int length, int element)
static int
rngRemove(int[] data, int size, int offset, int length, int element, int skip, Integer limit, int removeMarker)
static int
rngRemoveAll(int[] data, int size, int offset, int length, _intList elements, int skip, Integer limit, int removeMarker)
static int
rngRemoveDuplicates(int[] data, int size, int offset, int length, int removeMarker)
static boolean
rngRemoveOne(int[] data, int size, int offset, int length, int element)
static int
rngReplace(int[] data, int size, int offset, int length, int oldElement, int newElement)
static int
rngReplace(int[] data, int size, int offset, int length, int oldElement, int newElement, int skip, Integer limit)
static int
rngReplace(int[] data, int size, int offset, int length, _intPredicate predicate, int newElement)
static int
rngReplace(int[] data, int size, int offset, int length, _intPredicate predicate, int newElement, int skip, Integer limit)
static int
rngReplaceAll(int[] data, int size, int offset, int length, _intList oldElements, int newElement)
static int
rngReplaceAll(int[] data, int size, int offset, int length, _intList oldElements, int newElement, int skip, Integer limit)
static int
rngReplaceOne(int[] data, int size, int offset, int length, int oldElement, int newElement)
static int
rngReplaceOne(int[] data, int size, int offset, int length, _intPredicate predicate, int newElement)
static int
rngRetainAll(int[] data, int size, int offset, int length, _intList elements, int removeMarker)
static int
rngRetrieve(int[] data, int size, int offset, int length, int element, int notFoundMarker)
static int
rngRetrieve(int[] data, int size, int offset, int length, _intPredicate predicate, int notFoundMarker)
static void
rngReverse(int[] data, int size, int offset, int length)
static int
rngScan(int[] data, int size, int offset, int length, _intPredicate predicate)
static Integer
rngSearch(int[] data, int size, int offset, int length, _intPredicate predicate)
static void
rngShuffle(int[] data, int size, int offset, int length)
static int[]
rngToArray(int[] data, int size, int offset, int length)
static int[]
rngToArray(int[] data, int size, int offset, int length, int[] a)
static int
scan(int[] data, int size, _intPredicate predicate)
static Integer
search(int[] data, int size, _intPredicate predicate)
static void
set(int[] data, int size, int offset, int... elements)
static void
set(int[] data, int size, int offset, int[] src, int srcIndex, int srcLength)
static void
shuffle(int[] data, int size)
static int
substitute(int[] data, int size, _intPredicate predicate, int newElement)
static boolean
substituteOne(int[] data, int size, _intPredicate predicate, int replacement)
static void
swap(int[] data, int size, int indexA, int indexB)
static void
swap(int[] data, int size, int indexA, int indexB, int length)
static int[]
toReversed(int[] array, int size)
static String
toString(int[] data, int size)
static void
validateRange0Based(int size, int offset, int length)
-
-
-
Method Detail
-
checkIterationDirection
public static final int checkIterationDirection(int size, int offset, int length)
-
validateRange0Based
public static final void validateRange0Based(int size, int offset, int length)
-
addAll
public static final int addAll(int[] data, int size, int[] elements, int srcIndex, int srcLength, _intPredicate predicate)
-
addAll
public static final int addAll(int[] data, int size, int[] elements, int srcIndex, int srcLength, _intPredicate predicate, int skip, Integer limit)
-
contains
public static final boolean contains(int[] data, int size, int element)
-
rngContains
public static final boolean rngContains(int[] data, int size, int offset, int length, int element)
-
contains
public static final boolean contains(int[] data, int size, _intPredicate predicate)
-
rngContains
public static final boolean rngContains(int[] data, int size, int offset, int length, _intPredicate predicate)
-
containsAll
public static final boolean containsAll(int[] data, int size, int[] elements, int elementsOffset, int elementsLength)
-
rngContainsAll
public static final boolean rngContainsAll(int[] data, int size, int offset, int length, _intList elements)
-
count
public static final int count(int[] data, int size, int element)
-
rngCount
public static final int rngCount(int[] data, int size, int offset, int length, int element)
-
count
public static final int count(int[] data, int size, _intPredicate predicate)
-
rngCount
public static final int rngCount(int[] data, int size, int offset, int length, _intPredicate predicate)
-
copyTo
public static final <C extends _intCollecting> C copyTo(int[] data, int size, C target)
-
rngCopyTo
public static final <C extends _intCollecting> C rngCopyTo(int[] data, int size, int offset, int length, C target)
-
copyTo
public static final <C extends _intCollecting> C copyTo(int[] data, int size, C target, _intPredicate predicate)
-
rngCopyTo
public static final <C extends _intCollecting> C rngCopyTo(int[] data, int size, int offset, int length, C target, _intPredicate predicate)
-
copyTo
public static final <C extends _intCollecting> C copyTo(int[] data, int size, C target, _intPredicate predicate, int skip, Integer limit)
-
rngCopyTo
public static final <C extends _intCollecting> C rngCopyTo(int[] data, int size, int offset, int length, C target, _intPredicate predicate, int skip, Integer limit)
-
rngCopyTo
public static final int[] rngCopyTo(int[] data, int size, int offset, int length, int[] target, int targetOffset)
-
copySelection
public static final <C extends _intCollecting> C copySelection(int[] data, int size, long[] indices, C target)
-
search
public static final Integer search(int[] data, int size, _intPredicate predicate)
-
rngSearch
public static final Integer rngSearch(int[] data, int size, int offset, int length, _intPredicate predicate)
-
max
public static final int max(int[] data, int size)
-
min
public static final int min(int[] data, int size)
-
rngIterate
public static final void rngIterate(int[] data, int size, int offset, int length, _intProcedure procedure)
-
iterate
public static final void iterate(int[] data, int size, _intProcedure procedure)
-
iterate
public static final void iterate(int[] data, int size, _intIndexProcedure procedure)
-
rngIterate
public static final void rngIterate(int[] data, int size, int offset, int length, _intIndexProcedure procedure)
-
iterate
public static final void iterate(int[] data, int size, _intPredicate predicate, _intProcedure procedure)
-
rngIterate
public static final void rngIterate(int[] data, int size, int offset, int length, _intPredicate predicate, _intProcedure procedure)
-
iterate
public static final void iterate(int[] data, int size, _intPredicate predicate, _intProcedure procedure, int skip, Integer limit)
-
rngIterate
public static final void rngIterate(int[] data, int size, int offset, int length, _intPredicate predicate, _intProcedure procedure, int skip, Integer limit)
-
indexOf
public static final int indexOf(int[] data, int size, int element)
-
rngIndexOF
public static final int rngIndexOF(int[] data, int size, int offset, int length, int element)
-
indexOf
public static final int indexOf(int[] data, int size, _intPredicate predicate)
-
rngIndexOf
public static final int rngIndexOf(int[] data, int size, int offset, int length, _intPredicate predicate)
-
lastIndexOf
public static final int lastIndexOf(int[] data, int size, _intPredicate predicate)
-
scan
public static final int scan(int[] data, int size, _intPredicate predicate)
-
rngScan
public static final int rngScan(int[] data, int size, int offset, int length, _intPredicate predicate)
-
rngRemove
public static final int rngRemove(int[] data, int size, int offset, int length, int element)
-
remove
public static final int remove(int[] data, int size, int element, int skip, Integer limit, int removeMarker)
-
rngRemove
public static final int rngRemove(int[] data, int size, int offset, int length, int element, int skip, Integer limit, int removeMarker)
-
reduce
public static final int reduce(int[] data, int size, _intPredicate predicate, int removeMarker)
-
rngReduce
public static final int rngReduce(int[] data, int size, int offset, int length, _intPredicate predicate, int removeMarker)
-
reduce
public static final int reduce(int[] data, int size, _intPredicate predicate, int skip, Integer limit, int removeMarker)
-
rngReduce
public static final int rngReduce(int[] data, int size, int offset, int length, _intPredicate predicate, int skip, Integer limit, int removeMarker)
-
retainAll
public static final int retainAll(int[] data, int size, _intList elements, int removeMarker)
-
rngRetainAll
public static final int rngRetainAll(int[] data, int size, int offset, int length, _intList elements, int removeMarker)
-
process
public static final int process(int[] data, int size, _intProcedure procedure, int removeMarker)
-
rngProcess
public static final int rngProcess(int[] data, int size, int offset, int length, _intProcedure procedure, int removeMarker)
-
moveTo
public static final int moveTo(int[] data, int size, _intCollecting target, _intPredicate predicate, int removeMarker)
-
rngMoveTo
public static final int rngMoveTo(int[] data, int size, int offset, int length, _intCollecting target, _intPredicate predicate, int removeMarker)
-
moveSelection
public static final int moveSelection(int[] data, int size, long[] indices, _intCollecting target, int removeMarker)
-
moveTo
public static final int moveTo(int[] data, int size, _intCollecting target, _intPredicate predicate, int skip, Integer limit, int removeMarker)
-
rngMoveTo
public static final int rngMoveTo(int[] data, int size, int offset, int length, _intCollecting target, _intPredicate predicate, int skip, Integer limit, int removeMarker)
-
removeAll
public static final int removeAll(int[] data, int size, _intList elements, int skip, Integer limit, int removeMarker)
-
rngRemoveAll
public static final int rngRemoveAll(int[] data, int size, int offset, int length, _intList elements, int skip, Integer limit, int removeMarker)
-
removeDuplicates
public static final int removeDuplicates(int[] data, int size, int removeMarker)
-
rngRemoveDuplicates
public static final int rngRemoveDuplicates(int[] data, int size, int offset, int length, int removeMarker)
-
removeSelection
public static final int removeSelection(int[] data, int size, int[] indices, int removeMarker)
-
removeRange
public static final int removeRange(int[] data, int size, int offset, int length)
-
retrieve
public static final int retrieve(int[] data, int size, int element, int notFoundMarker)
-
retrieve
public static final int retrieve(int[] data, int size, _intPredicate predicate, int notFoundMarker)
-
removeOne
public static final boolean removeOne(int[] data, int size, int element)
-
rngRetrieve
public static final int rngRetrieve(int[] data, int size, int offset, int length, int element, int notFoundMarker)
-
rngRetrieve
public static final int rngRetrieve(int[] data, int size, int offset, int length, _intPredicate predicate, int notFoundMarker)
-
rngRemoveOne
public static final boolean rngRemoveOne(int[] data, int size, int offset, int length, int element)
-
replaceOne
public static final boolean replaceOne(int[] data, int size, int oldElement, int newElement)
-
rngReplaceOne
public static final int rngReplaceOne(int[] data, int size, int offset, int length, int oldElement, int newElement)
-
substituteOne
public static final boolean substituteOne(int[] data, int size, _intPredicate predicate, int replacement)
-
rngReplaceOne
public static final int rngReplaceOne(int[] data, int size, int offset, int length, _intPredicate predicate, int newElement)
-
replace
public static final int replace(int[] data, int size, int oldElement, int newElement)
-
rngReplace
public static final int rngReplace(int[] data, int size, int offset, int length, int oldElement, int newElement)
-
substitute
public static final int substitute(int[] data, int size, _intPredicate predicate, int newElement)
-
rngReplace
public static final int rngReplace(int[] data, int size, int offset, int length, _intPredicate predicate, int newElement)
-
replace
public static final int replace(int[] data, int size, int oldElement, int newElement, int skip, Integer limit)
-
rngReplace
public static final int rngReplace(int[] data, int size, int offset, int length, int oldElement, int newElement, int skip, Integer limit)
-
replace
public static final int replace(int[] data, int size, _intPredicate predicate, int newElement, int skip, Integer limit)
-
rngReplace
public static final int rngReplace(int[] data, int size, int offset, int length, _intPredicate predicate, int newElement, int skip, Integer limit)
-
rngReplaceAll
public static final int rngReplaceAll(int[] data, int size, int offset, int length, _intList oldElements, int newElement)
-
replaceAll
public static final int replaceAll(int[] data, int size, _intList oldElements, int newElement, int skip, Integer limit)
-
rngReplaceAll
public static final int rngReplaceAll(int[] data, int size, int offset, int length, _intList oldElements, int newElement, int skip, Integer limit)
-
modify
public static final int modify(int[] data, int size, _intFunction mapper)
-
modify
public static final int modify(int[] data, int size, _intPredicate predicate, _intFunction mapper)
-
rngModify
public static final int rngModify(int[] data, int size, int offset, int length, _intFunction mapper)
-
swap
public static final void swap(int[] data, int size, int indexA, int indexB) throws IndexOutOfBoundsException, ArrayIndexOutOfBoundsException
-
swap
public static final void swap(int[] data, int size, int indexA, int indexB, int length)
-
reverse
public static final void reverse(int[] data, int size)
-
rngReverse
public static final void rngReverse(int[] data, int size, int offset, int length)
-
set
public static final void set(int[] data, int size, int offset, int... elements)
-
set
public static final void set(int[] data, int size, int offset, int[] src, int srcIndex, int srcLength)
-
fill
public static final void fill(int[] data, int size, int offset, int length, int element)
-
toString
public static final String toString(int[] data, int size)
-
appendTo
public static final VarString appendTo(int[] data, int size, VarString vc, char separator)
-
appendTo
public static final VarString appendTo(int[] data, int size, VarString vc, String separator)
-
appendTo
public static final VarString appendTo(int[] data, int size, VarString vc, BiConsumer<VarString,Integer> appender)
-
appendTo
public static final VarString appendTo(int[] data, int size, VarString vc, BiConsumer<VarString,Integer> appender, char separator)
-
appendTo
public static final VarString appendTo(int[] data, int size, VarString vc, BiConsumer<VarString,Integer> appender, String separator)
-
rngAppendTo
public static final VarString rngAppendTo(int[] data, int size, int offset, int length, VarString vc)
-
rngAppendTo
public static final VarString rngAppendTo(int[] data, int size, int offset, int length, VarString vc, char separator)
-
rngAppendTo
public static final VarString rngAppendTo(int[] data, int size, int offset, int length, VarString vc, String separator)
-
rngAppendTo
public static final VarString rngAppendTo(int[] data, int size, int offset, int length, VarString vc, BiConsumer<VarString,Integer> appender)
-
rngAppendTo
public static final VarString rngAppendTo(int[] data, int size, int offset, int length, VarString vc, BiConsumer<VarString,Integer> appender, char separator)
-
rngAppendTo
public static final VarString rngAppendTo(int[] data, int size, int offset, int length, VarString vc, BiConsumer<VarString,Integer> appender, String separator)
-
isSorted
public static final boolean isSorted(int[] data, int size, boolean ascending)
-
isSortedAscending
public static final boolean isSortedAscending(int[] data, int size)
-
isSortedDescending
public static final boolean isSortedDescending(int[] data, int size)
-
shuffle
public static final void shuffle(int[] data, int size)
-
rngShuffle
public static final void rngShuffle(int[] data, int size, int offset, int length)
-
toReversed
public static final int[] toReversed(int[] array, int size)
-
rngHasUniqueValues
public static final boolean rngHasUniqueValues(int[] data, int size, int offset, int length)
-
containsSearched
public static final boolean containsSearched(int[] data, int size, _intPredicate predicate)
-
appliesAll
public static final boolean appliesAll(int[] data, int size, _intPredicate predicate)
-
rngAppliesAll
public static final boolean rngAppliesAll(int[] data, int size, int offset, int length, _intPredicate predicate)
-
rngToArray
public static final int[] rngToArray(int[] data, int size, int offset, int length)
-
rngToArray
public static final int[] rngToArray(int[] data, int size, int offset, int length, int[] a)
-
arrayHashCode
public static int arrayHashCode(int[] data, int size)
-
-