Package one.microstream.collections
Class XUtilsCollection
java.lang.Object
one.microstream.collections.XUtilsCollection
public final class XUtilsCollection extends Object
-
Constructor Summary
Constructors Constructor Description XUtilsCollection()
-
Method Summary
Modifier and Type Method Description static <E, C extends XAddingCollection<? super E>>
CaddAll(C target, E[] elements, long offset, long length, Predicate<? super E> predicate)
static <E, C extends XAddingCollection<? super E>>
CaddAll(C target, XGettingCollection<? extends E> elements, Predicate<? super E> predicate)
static <E> int
addAll(XAddingCollection<E> target, E... elements)
static <E> int
addAll(XAddingCollection<E> target, E[] elements, int offset, int length)
static <E> int
addAll(XAddingCollection<E> target, XGettingCollection<? extends E> elements)
static <E> VarString
appendTo(XGettingCollection<E> collection, VarString vc)
static <E> VarString
appendTo(XGettingCollection<E> collection, VarString vc, char separator)
static <E> VarString
appendTo(XGettingCollection<E> collection, VarString vc, String separator)
static <E> VarString
appendTo(XGettingCollection<E> collection, VarString vc, BiConsumer<VarString,? super E> appender)
static <E> VarString
appendTo(XGettingCollection<E> collection, VarString vc, BiConsumer<VarString,? super E> appender, char separator)
static <E> VarString
appendTo(XGettingCollection<E> collection, VarString vc, BiConsumer<VarString,? super E> appender, String separator)
static <E, C extends XGettingCollection<E>>
Cdecide(C collection, Predicate<? super E> predicate, Consumer<? super E> positiveOperation, Consumer<? super E> negativeOperation)
static <E, C extends XGettingCollection<E>>
Cdiverge(C elements, Consumer<? super E> positives, Consumer<? super E> negatives, Predicate<? super E> predicate)
static <E> int[]
index(XGettingSequence<E> sequence, Predicate<? super E> predicate)
Creates an array containing the indices of all elements the passed predicate applies to.static <E, C extends XInsertingList<? super E>>
Cinsert(C target, int index, E[] elements, long offset, long length, Predicate<? super E> predicate)
static <E, C extends XInsertingList<? super E>>
Cinsert(C target, long index, XGettingCollection<? extends E> elements, Predicate<? super E> predicate)
static <E, C extends XIterable<? extends E>>
Citerate(C collection, Predicate<? super E> predicate, Consumer<? super E> procedure)
static <E> int[]
orderedIndex(XGettingSequence<E> sequence, Predicate<? super E> predicate)
static <E, C extends XProcessingCollection<E>>
Cpartition(C collection, Predicate<? super E> predicate, Consumer<? super E> positiveTarget, Consumer<? super E> negativeTarget)
static <I, O, C extends XAddingCollection<? super O>>
CprojectInto(Iterable<? extends I> elements, Function<I,O> projector, C target)
static <E, C extends XAddingCollection<? super E>>
CputAll(C target, E[] elements, long offset, long length, Predicate<? super E> predicate)
static <E, C extends XAddingCollection<? super E>>
CputAll(C target, XGettingCollection<? extends E> elements, Predicate<? super E> predicate)
static <E> int
putAll(XPuttingCollection<E> target, E... elements)
static <E> int
putAll(XPuttingCollection<E> target, E[] elements, int offset, int length)
static <E> int
putAll(XPuttingCollection<E> target, XGettingCollection<? extends E> elements)
static <E, R> R
rngAggregate(XGettingSequence<E> sequence, long offset, long length, Aggregator<? super E,R> aggregate)
static <E> VarString
rngAppendTo(XGettingSequence<E> sequence, long offset, long length, VarString vs)
static <E> VarString
rngAppendTo(XGettingSequence<E> sequence, long offset, long length, VarString vs, char separator)
static <E> VarString
rngAppendTo(XGettingSequence<E> sequence, long offset, long length, VarString vs, String separator)
static <E> VarString
rngAppendTo(XGettingSequence<E> sequence, long offset, long length, VarString vs, BiConsumer<VarString,? super E> appender)
static <E> VarString
rngAppendTo(XGettingSequence<E> sequence, long offset, long length, VarString vc, BiConsumer<VarString,? super E> appender, char separator)
static <E> VarString
rngAppendTo(XGettingSequence<E> sequence, long offset, long length, VarString vs, BiConsumer<VarString,? super E> appender, String separator)
static <E> boolean
rngApplies(XGettingSequence<E> sequence, long offset, long length, Predicate<? super E> predicate)
static <E> boolean
rngAppliesAll(XGettingSequence<E> sequence, long offset, long length, Predicate<? super E> predicate)
static <E> int
rngBinarySearch(XGettingSequence<E> sequence, long offset, long length, E element, Comparator<? super E> comparator)
static <E> boolean
rngContains(XGettingSequence<E> sequence, long offset, long length, E element)
static <E> boolean
rngContains(XGettingSequence<E> sequence, long offset, long length, E sample, Equalator<? super E> equalator)
static <E> boolean
rngContains(XGettingSequence<E> sequence, long offset, long length, Predicate<? super E> predicate)
static <E> boolean
rngContainsAll(XGettingSequence<E> sequence, long offset, long length, XGettingCollection<? extends E> elements)
static <E> boolean
rngContainsId(XGettingSequence<E> sequence, long offset, long length, E element)
static <E> boolean
rngContainsNull(XGettingSequence<E> sequence, long offset, long length)
static <E, C extends Consumer<? super E>>
CrngCopyTo(XGettingSequence<E> sequence, long offset, long length, C target)
static <E, C extends Consumer<? super E>>
CrngCopyTo(XGettingSequence<E> sequence, long offset, long length, C target, Predicate<? super E> predicate)
static <E> int
rngCount(XGettingSequence<E> sequence, long offset, long length, E element)
static <E> int
rngCount(XGettingSequence<E> sequence, long offset, long length, E sample, Equalator<? super E> equalator)
static <E> int
rngCount(XGettingSequence<E> sequence, long offset, long length, Predicate<? super E> predicate)
static <E, C extends Consumer<? super E>>
CrngDistinct(XGettingSequence<E> sequence, long offset, long length, C target)
static <E, C extends Consumer<? super E>>
CrngDistinct(XGettingSequence<E> sequence, long offset, long length, C target, Equalator<? super E> equalator)
static <E> boolean
rngEqualsContent(XGettingSequence<E> sequence, long offset, long length, XGettingSequence<? extends E> other, Equalator<? super E> equalator)
static <E, C extends Consumer<? super E>>
CrngExcept(XGettingSequence<E> sequence, long offset, long length, XGettingCollection<? extends E> samples, Equalator<? super E> equalator, C target)
static <E> E
rngFind(XGettingSequence<E> sequence, long offset, long length, E sample, Equalator<? super E> equalator)
static <E> E
rngGet(XGettingSequence<E> sequence, long offset, long length, E sample, Equalator<? super E> equalator)
static <E> boolean
rngHasUniqueValues(XGettingSequence<E> sequence, long offset, long length)
static <E> boolean
rngHasUniqueValues(XGettingSequence<E> sequence, long offset, long length, Equalator<? super E> equalator)
static <E> int
rngIndexOf(XGettingSequence<E> sequence, long offset, long length, E sample, Equalator<? super E> equalator)
static <E> int
rngIndexOf(XGettingSequence<E> sequence, long offset, long length, Predicate<? super E> predicate)
static <E> int
rngIndexOF(XGettingSequence<E> sequence, long offset, long length, E element)
static <E, C extends Consumer<? super E>>
CrngIntersect(XGettingSequence<E> sequence, long offset, long length, XGettingCollection<? extends E> samples, Equalator<? super E> equalator, C target)
static <E> boolean
rngIsSorted(XGettingSequence<E> sequence, long offset, long length, Comparator<? super E> comparator)
static <E, C extends XGettingSequence<E>>
CrngIterate(C sequence, long offset, long length, Consumer<? super E> procedure)
static <E, C extends XGettingSequence<E>>
CrngIterate(C sequence, long offset, long length, Predicate<? super E> predicate, Consumer<? super E> procedure)
static <E, C extends XGettingSequence<E>>
CrngIterate(C sequence, long offset, long length, IndexedAcceptor<? super E> procedure)
static <E, A> A
rngJoin(XGettingSequence<E> sequence, long offset, long length, BiConsumer<? super E,? super A> joiner, A aggregate)
static <E> E
rngMax(XGettingSequence<E> sequence, long offset, long length, Comparator<? super E> comparator)
static <E> int
rngMaxIndex(XGettingSequence<E> sequence, long offset, long length, Comparator<? super E> comparator)
static <E> E
rngMin(XGettingSequence<E> sequence, long offset, long length, Comparator<? super E> comparator)
static <E> int
rngMinIndex(XGettingSequence<E> sequence, long offset, long length, Comparator<? super E> comparator)
static <E, C extends Consumer<? super E>>
CrngMoveTo(XProcessingSequence<E> sequence, long offset, long length, C target, Predicate<? super E> predicate)
static <E> XProcessingSequence<E>
rngProcess(XProcessingSequence<E> sequence, long offset, long length, Consumer<? super E> procedure)
static <E> int
rngReduce(XProcessingSequence<E> sequence, long offset, long length, Predicate<? super E> predicate)
static <E> int
rngRemove(XProcessingSequence<E> sequence, long offset, long length, E element)
static <E> int
rngRemove(XProcessingSequence<E> sequence, long offset, long length, E sample, Equalator<? super E> equalator)
static <E> int
rngRemoveAll(XProcessingSequence<E> sequence, long offset, long length, XGettingCollection<? extends E> elements)
static <E> int
rngRemoveAll(XProcessingSequence<E> sequence, long offset, long length, XGettingCollection<? extends E> samples, Equalator<? super E> equalator)
static <E> int
rngRemoveDuplicates(XProcessingSequence<E> sequence, long offset, long length)
static <E> int
rngRemoveDuplicates(XProcessingSequence<E> sequence, long offset, long length, Equalator<? super E> equalator)
static <E> int
rngRemoveNull(XProcessingSequence<E> sequence, long offset, long length)
static <E> boolean
rngRemoveOne(XProcessingSequence<E> sequence, long offset, long length, E element)
static <E> boolean
rngRemoveOne(XProcessingSequence<E> sequence, long offset, long length, E sample, Equalator<? super E> equalator)
static <E> int
rngRetainAll(XProcessingSequence<E> sequence, long offset, long length, XGettingCollection<? extends E> elements)
static <E> int
rngRetainAll(XProcessingSequence<E> sequence, long offset, long length, XGettingCollection<? extends E> samples, Equalator<? super E> equalator)
static <E> E
rngRetrieve(XProcessingSequence<E> sequence, long offset, long length, E element)
static <E> E
rngRetrieve(XProcessingSequence<E> sequence, long offset, long length, E sample, Equalator<? super E> equalator)
static <E> E
rngRetrieve(XProcessingSequence<E> sequence, long offset, long length, Predicate<? super E> predicate)
static <E> int
rngScan(XGettingSequence<E> sequence, long offset, long length, Predicate<? super E> predicate)
static <E> E
rngSearch(XGettingSequence<E> sequence, long offset, long length, Predicate<? super E> predicate)
static <E> void
rngShuffle(XSettingList<E> sequence, long offset, long length)
static <E> void
rngShuffle(XSortableSequence<E> collection, long offset, long length)
static <E> void
rngSort(XSettingList<E> sequence, long offset, long length, Comparator<? super E> comparator)
static <E> void
rngSortInsertion(XSettingList<E> sequence, long offset, long length, Comparator<? super E> comparator)
static <E> void
rngSortMerge(XSettingList<E> sequence, long offset, long length, Comparator<? super E> comparator)
static <E> void
rngSortQuick(XSettingList<E> sequence, long offset, long length, Comparator<? super E> comparator)
static <E, C extends Consumer<? super E>>
CrngUnion(XGettingSequence<E> sequence, long offset, long length, XGettingCollection<? extends E> samples, Equalator<? super E> equalator, C target)
static <E> void
shuffle(XSortableSequence<E> collection)
static <E, C extends XCollection<E>>
Csubtract(C elements, XGettingCollection<? extends E> other)
static <E, S extends E>
E[]toArray(XGettingCollection<S> collection, Class<E> arrayComponentType)
static <V> EqHashTable<Integer,V>
toTable(V... values)
static <E, C extends XSortableSequence<E>>
CvalueSort(C collection, Comparator<? super E> order)
static <V, E, C extends XTable<E, V>>
CvalueSortByKeys(C collection, Comparator<? super E> order)
static <K, E, C extends XTable<K, E>>
CvalueSortByValues(C collection, Comparator<? super E> order)
-
Constructor Details
-
XUtilsCollection
public XUtilsCollection()
-
-
Method Details
-
iterate
-
valueSortByValues
public static <K, E, C extends XTable<K, E>> C valueSortByValues(C collection, Comparator<? super E> order) -
valueSortByKeys
public static <V, E, C extends XTable<E, V>> C valueSortByKeys(C collection, Comparator<? super E> order) -
valueSort
public static <E, C extends XSortableSequence<E>> C valueSort(C collection, Comparator<? super E> order) -
shuffle
-
rngShuffle
-
diverge
public static <E, C extends XGettingCollection<E>> C diverge(C elements, Consumer<? super E> positives, Consumer<? super E> negatives, Predicate<? super E> predicate) -
partition
public static <E, C extends XProcessingCollection<E>> C partition(C collection, Predicate<? super E> predicate, Consumer<? super E> positiveTarget, Consumer<? super E> negativeTarget) -
decide
public static <E, C extends XGettingCollection<E>> C decide(C collection, Predicate<? super E> predicate, Consumer<? super E> positiveOperation, Consumer<? super E> negativeOperation) -
subtract
public static <E, C extends XCollection<E>> C subtract(C elements, XGettingCollection<? extends E> other) -
rngBinarySearch
public static <E> int rngBinarySearch(XGettingSequence<E> sequence, long offset, long length, E element, Comparator<? super E> comparator) -
rngHasUniqueValues
public static <E> boolean rngHasUniqueValues(XGettingSequence<E> sequence, long offset, long length) -
rngHasUniqueValues
public static <E> boolean rngHasUniqueValues(XGettingSequence<E> sequence, long offset, long length, Equalator<? super E> equalator) -
rngContainsAll
public static <E> boolean rngContainsAll(XGettingSequence<E> sequence, long offset, long length, XGettingCollection<? extends E> elements) -
rngMax
public static <E> E rngMax(XGettingSequence<E> sequence, long offset, long length, Comparator<? super E> comparator) -
rngMin
public static <E> E rngMin(XGettingSequence<E> sequence, long offset, long length, Comparator<? super E> comparator) -
rngIndexOf
public static <E> int rngIndexOf(XGettingSequence<E> sequence, long offset, long length, E sample, Equalator<? super E> equalator) -
rngIndexOF
public static <E> int rngIndexOF(XGettingSequence<E> sequence, long offset, long length, E element) -
rngCount
public static <E> int rngCount(XGettingSequence<E> sequence, long offset, long length, E sample, Equalator<? super E> equalator) -
rngCount
-
rngIsSorted
public static <E> boolean rngIsSorted(XGettingSequence<E> sequence, long offset, long length, Comparator<? super E> comparator) -
rngCopyTo
public static <E, C extends Consumer<? super E>> C rngCopyTo(XGettingSequence<E> sequence, long offset, long length, C target) -
rngCopyTo
public static <E, C extends Consumer<? super E>> C rngCopyTo(XGettingSequence<E> sequence, long offset, long length, C target, Predicate<? super E> predicate) -
rngIterate
public static <E, C extends XGettingSequence<E>> C rngIterate(C sequence, long offset, long length, Consumer<? super E> procedure) -
rngIterate
public static <E, C extends XGettingSequence<E>> C rngIterate(C sequence, long offset, long length, IndexedAcceptor<? super E> procedure) -
rngIterate
public static <E, C extends XGettingSequence<E>> C rngIterate(C sequence, long offset, long length, Predicate<? super E> predicate, Consumer<? super E> procedure) -
rngJoin
public static <E, A> A rngJoin(XGettingSequence<E> sequence, long offset, long length, BiConsumer<? super E,? super A> joiner, A aggregate) -
rngFind
public static <E> E rngFind(XGettingSequence<E> sequence, long offset, long length, E sample, Equalator<? super E> equalator) -
rngContains
public static <E> boolean rngContains(XGettingSequence<E> sequence, long offset, long length, E element) -
rngContainsId
public static <E> boolean rngContainsId(XGettingSequence<E> sequence, long offset, long length, E element) -
rngContains
public static <E> boolean rngContains(XGettingSequence<E> sequence, long offset, long length, E sample, Equalator<? super E> equalator) -
rngContains
public static <E> boolean rngContains(XGettingSequence<E> sequence, long offset, long length, Predicate<? super E> predicate) -
rngContainsNull
-
rngApplies
public static <E> boolean rngApplies(XGettingSequence<E> sequence, long offset, long length, Predicate<? super E> predicate) -
rngAppliesAll
public static <E> boolean rngAppliesAll(XGettingSequence<E> sequence, long offset, long length, Predicate<? super E> predicate) -
rngCount
public static <E> int rngCount(XGettingSequence<E> sequence, long offset, long length, Predicate<? super E> predicate) -
rngIndexOf
public static <E> int rngIndexOf(XGettingSequence<E> sequence, long offset, long length, Predicate<? super E> predicate) -
rngScan
public static <E> int rngScan(XGettingSequence<E> sequence, long offset, long length, Predicate<? super E> predicate) -
rngGet
public static <E> E rngGet(XGettingSequence<E> sequence, long offset, long length, E sample, Equalator<? super E> equalator) -
rngSearch
public static <E> E rngSearch(XGettingSequence<E> sequence, long offset, long length, Predicate<? super E> predicate) -
rngEqualsContent
public static <E> boolean rngEqualsContent(XGettingSequence<E> sequence, long offset, long length, XGettingSequence<? extends E> other, Equalator<? super E> equalator) -
rngAggregate
public static <E, R> R rngAggregate(XGettingSequence<E> sequence, long offset, long length, Aggregator<? super E,R> aggregate) -
rngAppendTo
public static <E> VarString rngAppendTo(XGettingSequence<E> sequence, long offset, long length, VarString vs) -
rngAppendTo
public static <E> VarString rngAppendTo(XGettingSequence<E> sequence, long offset, long length, VarString vs, String separator) -
rngAppendTo
public static <E> VarString rngAppendTo(XGettingSequence<E> sequence, long offset, long length, VarString vs, char separator) -
rngAppendTo
public static <E> VarString rngAppendTo(XGettingSequence<E> sequence, long offset, long length, VarString vs, BiConsumer<VarString,? super E> appender) -
rngAppendTo
public static <E> VarString rngAppendTo(XGettingSequence<E> sequence, long offset, long length, VarString vc, BiConsumer<VarString,? super E> appender, char separator) -
rngAppendTo
public static <E> VarString rngAppendTo(XGettingSequence<E> sequence, long offset, long length, VarString vs, BiConsumer<VarString,? super E> appender, String separator) -
rngMaxIndex
public static <E> int rngMaxIndex(XGettingSequence<E> sequence, long offset, long length, Comparator<? super E> comparator) -
rngMinIndex
public static <E> int rngMinIndex(XGettingSequence<E> sequence, long offset, long length, Comparator<? super E> comparator) -
rngDistinct
public static <E, C extends Consumer<? super E>> C rngDistinct(XGettingSequence<E> sequence, long offset, long length, C target) -
rngDistinct
public static <E, C extends Consumer<? super E>> C rngDistinct(XGettingSequence<E> sequence, long offset, long length, C target, Equalator<? super E> equalator) -
rngIntersect
public static <E, C extends Consumer<? super E>> C rngIntersect(XGettingSequence<E> sequence, long offset, long length, XGettingCollection<? extends E> samples, Equalator<? super E> equalator, C target) -
rngUnion
public static <E, C extends Consumer<? super E>> C rngUnion(XGettingSequence<E> sequence, long offset, long length, XGettingCollection<? extends E> samples, Equalator<? super E> equalator, C target) -
rngExcept
public static <E, C extends Consumer<? super E>> C rngExcept(XGettingSequence<E> sequence, long offset, long length, XGettingCollection<? extends E> samples, Equalator<? super E> equalator, C target) -
addAll
public static <E, C extends XAddingCollection<? super E>> C addAll(C target, E[] elements, long offset, long length, Predicate<? super E> predicate) -
addAll
public static <E, C extends XAddingCollection<? super E>> C addAll(C target, XGettingCollection<? extends E> elements, Predicate<? super E> predicate) -
putAll
public static <E, C extends XAddingCollection<? super E>> C putAll(C target, E[] elements, long offset, long length, Predicate<? super E> predicate) -
putAll
public static <E, C extends XAddingCollection<? super E>> C putAll(C target, XGettingCollection<? extends E> elements, Predicate<? super E> predicate) -
insert
public static <E, C extends XInsertingList<? super E>> C insert(C target, int index, E[] elements, long offset, long length, Predicate<? super E> predicate) -
insert
public static <E, C extends XInsertingList<? super E>> C insert(C target, long index, XGettingCollection<? extends E> elements, Predicate<? super E> predicate) -
rngRetrieve
public static <E> E rngRetrieve(XProcessingSequence<E> sequence, long offset, long length, E element) -
rngRetrieve
public static <E> E rngRetrieve(XProcessingSequence<E> sequence, long offset, long length, E sample, Equalator<? super E> equalator) -
rngRetrieve
public static <E> E rngRetrieve(XProcessingSequence<E> sequence, long offset, long length, Predicate<? super E> predicate) -
rngRemoveOne
public static <E> boolean rngRemoveOne(XProcessingSequence<E> sequence, long offset, long length, E element) -
rngRemoveOne
public static <E> boolean rngRemoveOne(XProcessingSequence<E> sequence, long offset, long length, E sample, Equalator<? super E> equalator) -
rngRemoveNull
-
rngRemove
public static <E> int rngRemove(XProcessingSequence<E> sequence, long offset, long length, E element) -
rngRemove
public static <E> int rngRemove(XProcessingSequence<E> sequence, long offset, long length, E sample, Equalator<? super E> equalator) -
rngRemoveAll
public static <E> int rngRemoveAll(XProcessingSequence<E> sequence, long offset, long length, XGettingCollection<? extends E> samples, Equalator<? super E> equalator) -
rngRemoveAll
public static <E> int rngRemoveAll(XProcessingSequence<E> sequence, long offset, long length, XGettingCollection<? extends E> elements) -
rngRetainAll
public static <E> int rngRetainAll(XProcessingSequence<E> sequence, long offset, long length, XGettingCollection<? extends E> samples, Equalator<? super E> equalator) -
rngRetainAll
public static <E> int rngRetainAll(XProcessingSequence<E> sequence, long offset, long length, XGettingCollection<? extends E> elements) -
rngRemoveDuplicates
public static <E> int rngRemoveDuplicates(XProcessingSequence<E> sequence, long offset, long length, Equalator<? super E> equalator) -
rngRemoveDuplicates
public static <E> int rngRemoveDuplicates(XProcessingSequence<E> sequence, long offset, long length) -
rngReduce
public static <E> int rngReduce(XProcessingSequence<E> sequence, long offset, long length, Predicate<? super E> predicate) -
rngMoveTo
public static <E, C extends Consumer<? super E>> C rngMoveTo(XProcessingSequence<E> sequence, long offset, long length, C target, Predicate<? super E> predicate) -
rngProcess
public static <E> XProcessingSequence<E> rngProcess(XProcessingSequence<E> sequence, long offset, long length, Consumer<? super E> procedure) -
rngSort
public static <E> void rngSort(XSettingList<E> sequence, long offset, long length, Comparator<? super E> comparator) -
rngShuffle
-
rngSortMerge
public static <E> void rngSortMerge(XSettingList<E> sequence, long offset, long length, Comparator<? super E> comparator) -
rngSortInsertion
public static <E> void rngSortInsertion(XSettingList<E> sequence, long offset, long length, Comparator<? super E> comparator) -
rngSortQuick
public static <E> void rngSortQuick(XSettingList<E> sequence, long offset, long length, Comparator<? super E> comparator) -
appendTo
-
appendTo
public static <E> VarString appendTo(XGettingCollection<E> collection, VarString vc, char separator) -
appendTo
public static <E> VarString appendTo(XGettingCollection<E> collection, VarString vc, String separator) -
appendTo
public static <E> VarString appendTo(XGettingCollection<E> collection, VarString vc, BiConsumer<VarString,? super E> appender) -
appendTo
public static <E> VarString appendTo(XGettingCollection<E> collection, VarString vc, BiConsumer<VarString,? super E> appender, char separator) -
appendTo
public static <E> VarString appendTo(XGettingCollection<E> collection, VarString vc, BiConsumer<VarString,? super E> appender, String separator) -
addAll
-
addAll
-
addAll
public static <E> int addAll(XAddingCollection<E> target, XGettingCollection<? extends E> elements) -
putAll
-
putAll
-
putAll
public static <E> int putAll(XPuttingCollection<E> target, XGettingCollection<? extends E> elements) -
toArray
public static <E, S extends E> E[] toArray(XGettingCollection<S> collection, Class<E> arrayComponentType) -
toTable
-
index
Creates an array containing the indices of all elements the passed predicate applies to.- Type Parameters:
E
- the element type of the passed sequence.- Parameters:
sequence
- the sequence to be indexed.predicate
- the predicate to be used to create the index.- Returns:
- the index describing the passed predicate for the passed sequence.
-
orderedIndex
-
projectInto
public static <I, O, C extends XAddingCollection<? super O>> C projectInto(Iterable<? extends I> elements, Function<I,O> projector, C target)
-