| Package | Description |
|---|---|
| org.eclipse.collections.api |
This package contains interfaces for Eclipse Collections API.
|
| org.eclipse.collections.api.bag |
This package contains interfaces for Bag API.
|
| org.eclipse.collections.api.bag.primitive |
This package contains API for Primitive Bags with Mutable and Immutable variants.
|
| org.eclipse.collections.api.bag.sorted |
This package contains interfaces for SortedBag API.
|
| org.eclipse.collections.api.collection | |
| org.eclipse.collections.api.factory.list |
This package contains factory API for creating instances of type
ListIterable. |
| org.eclipse.collections.api.list |
This package contains interfaces for list API which enhance the performance and functionality of
List. |
| org.eclipse.collections.api.list.primitive |
This package contains mutable and immutable primitive list API.
|
| org.eclipse.collections.api.map |
This package contains interfaces for map API which enhance the performance and functionality of
Map |
| org.eclipse.collections.api.map.sorted |
This package contains mutable and immutable sorted map interfaces.
|
| org.eclipse.collections.api.multimap.list |
This package contains interfaces for
ListMultimap. |
| org.eclipse.collections.api.partition.list |
This package contains interfaces for
PartitionList. |
| org.eclipse.collections.api.set.sorted |
This package contains interfaces for sorted set API.
|
| Modifier and Type | Method and Description |
|---|---|
MutableList<T> |
RichIterable.toList()
Converts the collection to a MutableList implementation.
|
MutableList<T> |
ParallelIterable.toList() |
default MutableList<T> |
RichIterable.toSortedList()
Converts the collection to a MutableList implementation and sorts it using the natural order of the elements.
|
default MutableList<T> |
ParallelIterable.toSortedList() |
default MutableList<T> |
RichIterable.toSortedList(Comparator<? super T> comparator)
Converts the collection to a MutableList implementation and sorts it using the specified comparator.
|
MutableList<T> |
ParallelIterable.toSortedList(Comparator<? super T> comparator) |
default <V extends Comparable<? super V>> |
RichIterable.toSortedListBy(Function<? super T,? extends V> function)
Converts the collection to a MutableList implementation and sorts it based on the natural order of the
attribute returned by
function. |
<V extends Comparable<? super V>> |
ParallelIterable.toSortedListBy(Function<? super T,? extends V> function) |
| Modifier and Type | Method and Description |
|---|---|
MutableList<ObjectIntPair<T>> |
MutableBagIterable.bottomOccurrences(int count) |
MutableList<ObjectIntPair<T>> |
MutableBagIterable.topOccurrences(int count) |
| Modifier and Type | Method and Description |
|---|---|
MutableList<BooleanIntPair> |
MutableBooleanBag.bottomOccurrences(int count)
Returns the
count least frequently occurring items. |
MutableList<CharIntPair> |
MutableCharBag.bottomOccurrences(int count)
Returns the
count least frequently occurring items. |
MutableList<ByteIntPair> |
MutableByteBag.bottomOccurrences(int count)
Returns the
count least frequently occurring items. |
MutableList<ShortIntPair> |
MutableShortBag.bottomOccurrences(int count)
Returns the
count least frequently occurring items. |
MutableList<LongIntPair> |
MutableLongBag.bottomOccurrences(int count)
Returns the
count least frequently occurring items. |
MutableList<DoubleIntPair> |
MutableDoubleBag.bottomOccurrences(int count)
Returns the
count least frequently occurring items. |
MutableList<FloatIntPair> |
MutableFloatBag.bottomOccurrences(int count)
Returns the
count least frequently occurring items. |
MutableList<IntIntPair> |
MutableIntBag.bottomOccurrences(int count)
Returns the
count least frequently occurring items. |
MutableList<BooleanIntPair> |
MutableBooleanBag.topOccurrences(int count)
Returns the
count most frequently occurring items. |
MutableList<CharIntPair> |
MutableCharBag.topOccurrences(int count)
Returns the
count most frequently occurring items. |
MutableList<ByteIntPair> |
MutableByteBag.topOccurrences(int count)
Returns the
count most frequently occurring items. |
MutableList<ShortIntPair> |
MutableShortBag.topOccurrences(int count)
Returns the
count most frequently occurring items. |
MutableList<LongIntPair> |
MutableLongBag.topOccurrences(int count)
Returns the
count most frequently occurring items. |
MutableList<DoubleIntPair> |
MutableDoubleBag.topOccurrences(int count)
Returns the
count most frequently occurring items. |
MutableList<FloatIntPair> |
MutableFloatBag.topOccurrences(int count)
Returns the
count most frequently occurring items. |
MutableList<IntIntPair> |
MutableIntBag.topOccurrences(int count)
Returns the
count most frequently occurring items. |
| Modifier and Type | Method and Description |
|---|---|
<V> MutableList<V> |
MutableSortedBag.collect(Function<? super T,? extends V> function) |
<V> MutableList<V> |
MutableSortedBag.collectIf(Predicate<? super T> predicate,
Function<? super T,? extends V> function) |
<P,V> MutableList<V> |
MutableSortedBag.collectWith(Function2<? super T,? super P,? extends V> function,
P parameter) |
default <V> MutableList<V> |
MutableSortedBag.collectWithIndex(ObjectIntToObjectFunction<? super T,? extends V> function) |
<V> MutableList<V> |
MutableSortedBag.collectWithOccurrences(ObjectIntToObjectFunction<? super T,? extends V> function) |
<V> MutableList<V> |
MutableSortedBag.flatCollect(Function<? super T,? extends Iterable<V>> function) |
default <P,V> MutableList<V> |
MutableSortedBag.flatCollectWith(Function2<? super T,? super P,? extends Iterable<V>> function,
P parameter) |
<S> MutableList<Pair<T,S>> |
MutableSortedBag.zip(Iterable<S> that) |
| Modifier and Type | Method and Description |
|---|---|
<P> Twin<MutableList<T>> |
MutableCollection.selectAndRejectWith(Predicate2<? super T,? super P> predicate,
P parameter)
Deprecated.
since 6.0 use
RichIterable.partitionWith(Predicate2, Object) instead. |
| Modifier and Type | Method and Description |
|---|---|
<T> MutableList<T> |
MutableListFactory.empty() |
<T> MutableList<T> |
MutableListFactory.fromStream(Stream<? extends T> stream) |
default <T> MutableList<T> |
MutableListFactory.of()
Same as
MutableListFactory.empty(). |
default <T> MutableList<T> |
MutableListFactory.of(T... items)
Same as
MutableListFactory.with(Object[]). |
default <T> MutableList<T> |
MutableListFactory.ofAll(Iterable<? extends T> iterable)
Same as
MutableListFactory.withAll(Iterable). |
default <T> MutableList<T> |
MutableListFactory.ofInitialCapacity(int capacity)
Same as
MutableListFactory.empty(). |
default <T> MutableList<T> |
MutableListFactory.with()
Same as
MutableListFactory.empty(). |
<T> MutableList<T> |
MutableListFactory.with(T... items)
Creates a new list using the passed
items argument as the backing store. |
<T> MutableList<T> |
MutableListFactory.withAll(Iterable<? extends T> iterable) |
<T> MutableList<T> |
MutableListFactory.withInitialCapacity(int capacity)
Same as
MutableListFactory.empty(). |
<T> MutableList<T> |
MutableListFactory.withNValues(int size,
Function0<? extends T> factory) |
default <T> MutableList<T> |
MutableListFactory.wrapCopy(T... array)
Creates a new list by first copying the array passed in.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
FixedSizeList<T>
A FixedSizeList is a list that may be mutated, but cannot grow or shrink in size.
|
interface |
MultiReaderList<T>
A MultiReaderList provides thread-safe iteration for a list through methods
withReadLockAndDelegate() and withWriteLockAndDelegate(). |
| Modifier and Type | Method and Description |
|---|---|
MutableList<T> |
MutableList.asSynchronized() |
MutableList<T> |
MutableList.asUnmodifiable()
Returns an unmodifiable view of the list.
|
MutableList<T> |
MutableList.clone() |
default <V> MutableList<V> |
MutableList.collect(Function<? super T,? extends V> function) |
default <V> MutableList<V> |
MutableList.collectIf(Predicate<? super T> predicate,
Function<? super T,? extends V> function) |
default <P,V> MutableList<V> |
MutableList.collectWith(Function2<? super T,? super P,? extends V> function,
P parameter) |
default <V> MutableList<V> |
MutableList.collectWithIndex(ObjectIntToObjectFunction<? super T,? extends V> function) |
MutableList<T> |
MutableList.distinct()
Returns a new
ListIterable containing the distinct elements in this list. |
MutableList<T> |
MutableList.distinct(HashingStrategy<? super T> hashingStrategy)
Returns a new
ListIterable containing the distinct elements in this list. |
<V> MutableList<T> |
MutableList.distinctBy(Function<? super T,? extends V> function) |
MutableList<T> |
MutableList.drop(int count) |
MutableList<T> |
MutableList.dropWhile(Predicate<? super T> predicate) |
default <V> MutableList<V> |
MutableList.flatCollect(Function<? super T,? extends Iterable<V>> function) |
default <P,V> MutableList<V> |
MutableList.flatCollectWith(Function2<? super T,? super P,? extends Iterable<V>> function,
P parameter) |
MutableList<T> |
MutableList.newEmpty() |
default MutableList<T> |
MutableList.reject(Predicate<? super T> predicate) |
default <P> MutableList<T> |
MutableList.rejectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
default MutableList<T> |
MutableList.rejectWithIndex(ObjectIntPredicate<? super T> predicate)
Returns a new MutableList with all elements of the collection that return false when evaluating the specified
predicate which is supplied each element and its relative index.
|
default MutableList<T> |
MutableList.reverseThis()
Mutates this list by reversing its order and returns the current list as a result.
|
default MutableList<T> |
MutableList.select(Predicate<? super T> predicate) |
<S> MutableList<S> |
MutableList.selectInstancesOf(Class<S> clazz) |
default <P> MutableList<T> |
MutableList.selectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
default MutableList<T> |
MutableList.selectWithIndex(ObjectIntPredicate<? super T> predicate)
Returns a new MutableList with all elements of the collection that return true when evaluating the specified
predicate which is supplied each element and its relative index.
|
default MutableList<T> |
MutableList.shuffleThis()
Mutates this list by shuffling its elements.
|
default MutableList<T> |
MutableList.shuffleThis(Random random)
Mutates this list by shuffling its elements using the specified random.
|
default MutableList<T> |
MutableList.sortThis()
Sorts the internal data structure of this list and returns the list itself as a convenience.
|
default MutableList<T> |
MutableList.sortThis(Comparator<? super T> comparator)
Sorts the internal data structure of this list and returns the list itself as a convenience.
|
default <V extends Comparable<? super V>> |
MutableList.sortThisBy(Function<? super T,? extends V> function)
Sorts the internal data structure of this list based on the natural order of the attribute returned by
function. |
MutableList<T> |
MutableList.sortThisByBoolean(BooleanFunction<? super T> function) |
MutableList<T> |
MutableList.sortThisByByte(ByteFunction<? super T> function) |
MutableList<T> |
MutableList.sortThisByChar(CharFunction<? super T> function) |
MutableList<T> |
MutableList.sortThisByDouble(DoubleFunction<? super T> function) |
MutableList<T> |
MutableList.sortThisByFloat(FloatFunction<? super T> function) |
MutableList<T> |
MutableList.sortThisByInt(IntFunction<? super T> function) |
MutableList<T> |
MutableList.sortThisByLong(LongFunction<? super T> function) |
MutableList<T> |
MutableList.sortThisByShort(ShortFunction<? super T> function) |
MutableList<T> |
MutableList.subList(int fromIndex,
int toIndex) |
MutableList<T> |
MutableList.take(int count) |
MutableList<T> |
MutableList.takeWhile(Predicate<? super T> predicate) |
default MutableList<T> |
MutableList.tap(Procedure<? super T> procedure) |
default MutableList<T> |
MutableList.toReversed()
Returns a new MutableList in reverse order.
|
default MutableList<T> |
MutableList.with(T element) |
MutableList<T> |
FixedSizeList.with(T element) |
default MutableList<T> |
MutableList.withAll(Iterable<? extends T> elements) |
MutableList<T> |
FixedSizeList.withAll(Iterable<? extends T> elements) |
default MutableList<T> |
MutableList.without(T element) |
MutableList<T> |
FixedSizeList.without(T element) |
default MutableList<T> |
MutableList.withoutAll(Iterable<? extends T> elements) |
MutableList<T> |
FixedSizeList.withoutAll(Iterable<? extends T> elements) |
<S> MutableList<Pair<T,S>> |
MutableList.zip(Iterable<S> that) |
MutableList<Pair<T,Integer>> |
MutableList.zipWithIndex() |
| Modifier and Type | Method and Description |
|---|---|
void |
MultiReaderList.withReadLockAndDelegate(Procedure<? super MutableList<T>> procedure) |
void |
MultiReaderList.withWriteLockAndDelegate(Procedure<? super MutableList<T>> procedure) |
| Modifier and Type | Method and Description |
|---|---|
<V> MutableList<V> |
MutableBooleanList.collect(BooleanToObjectFunction<? extends V> function) |
<V> MutableList<V> |
MutableByteList.collect(ByteToObjectFunction<? extends V> function) |
<V> MutableList<V> |
MutableCharList.collect(CharToObjectFunction<? extends V> function) |
<V> MutableList<V> |
MutableDoubleList.collect(DoubleToObjectFunction<? extends V> function) |
<V> MutableList<V> |
MutableFloatList.collect(FloatToObjectFunction<? extends V> function) |
<V> MutableList<V> |
MutableIntList.collect(IntToObjectFunction<? extends V> function) |
<V> MutableList<V> |
MutableLongList.collect(LongToObjectFunction<? extends V> function) |
<V> MutableList<V> |
MutableShortList.collect(ShortToObjectFunction<? extends V> function) |
default <V> MutableList<V> |
MutableBooleanList.collectWithIndex(BooleanIntToObjectFunction<? extends V> function)
Returns a new MutableList using results obtained by applying the specified function to each element
and its corresponding index.
|
default <V> MutableList<V> |
MutableByteList.collectWithIndex(ByteIntToObjectFunction<? extends V> function)
Returns a new MutableList using results obtained by applying the specified function to each element
and its corresponding index.
|
default <V> MutableList<V> |
MutableCharList.collectWithIndex(CharIntToObjectFunction<? extends V> function)
Returns a new MutableList using results obtained by applying the specified function to each element
and its corresponding index.
|
default <V> MutableList<V> |
MutableDoubleList.collectWithIndex(DoubleIntToObjectFunction<? extends V> function)
Returns a new MutableList using results obtained by applying the specified function to each element
and its corresponding index.
|
default <V> MutableList<V> |
MutableFloatList.collectWithIndex(FloatIntToObjectFunction<? extends V> function)
Returns a new MutableList using results obtained by applying the specified function to each element
and its corresponding index.
|
default <V> MutableList<V> |
MutableIntList.collectWithIndex(IntIntToObjectFunction<? extends V> function)
Returns a new MutableList using results obtained by applying the specified function to each element
and its corresponding index.
|
default <V> MutableList<V> |
MutableLongList.collectWithIndex(LongIntToObjectFunction<? extends V> function)
Returns a new MutableList using results obtained by applying the specified function to each element
and its corresponding index.
|
default <V> MutableList<V> |
MutableShortList.collectWithIndex(ShortIntToObjectFunction<? extends V> function)
Returns a new MutableList using results obtained by applying the specified function to each element
and its corresponding index.
|
default <T> MutableList<BooleanObjectPair<T>> |
MutableBooleanList.zip(Iterable<T> list)
Returns a
MutableList formed from this MutableBooleanList and a ListIterable by
combining corresponding elements in pairs. |
default <T> MutableList<CharObjectPair<T>> |
MutableCharList.zip(Iterable<T> list)
Returns a
MutableList formed from this MutableCharList and a ListIterable by
combining corresponding elements in pairs. |
default <T> MutableList<ByteObjectPair<T>> |
MutableByteList.zip(Iterable<T> list)
Returns a
MutableList formed from this MutableByteList and a ListIterable by
combining corresponding elements in pairs. |
default <T> MutableList<ShortObjectPair<T>> |
MutableShortList.zip(Iterable<T> list)
Returns a
MutableList formed from this MutableShortList and a ListIterable by
combining corresponding elements in pairs. |
default <T> MutableList<LongObjectPair<T>> |
MutableLongList.zip(Iterable<T> list)
Returns a
MutableList formed from this MutableLongList and a ListIterable by
combining corresponding elements in pairs. |
default <T> MutableList<DoubleObjectPair<T>> |
MutableDoubleList.zip(Iterable<T> list)
Returns a
MutableList formed from this MutableDoubleList and a ListIterable by
combining corresponding elements in pairs. |
default <T> MutableList<FloatObjectPair<T>> |
MutableFloatList.zip(Iterable<T> list)
Returns a
MutableList formed from this MutableFloatList and a ListIterable by
combining corresponding elements in pairs. |
default <T> MutableList<IntObjectPair<T>> |
MutableIntList.zip(Iterable<T> list)
Returns a
MutableList formed from this MutableIntList and a ListIterable by
combining corresponding elements in pairs. |
default MutableList<BooleanBooleanPair> |
MutableBooleanList.zipBoolean(BooleanIterable iterable)
Returns a
MutableList formed from this MutableBooleanList and another BooleanList by
combining corresponding elements in pairs. |
default MutableList<ByteBytePair> |
MutableByteList.zipByte(ByteIterable iterable)
Returns a
MutableList formed from this MutableByteList and another ByteList by
combining corresponding elements in pairs. |
default MutableList<CharCharPair> |
MutableCharList.zipChar(CharIterable iterable)
Returns a
MutableList formed from this MutableCharList and another CharList by
combining corresponding elements in pairs. |
default MutableList<DoubleDoublePair> |
MutableDoubleList.zipDouble(DoubleIterable iterable)
Returns a
MutableList formed from this MutableDoubleList and another DoubleList by
combining corresponding elements in pairs. |
default MutableList<FloatFloatPair> |
MutableFloatList.zipFloat(FloatIterable iterable)
Returns a
MutableList formed from this MutableFloatList and another FloatList by
combining corresponding elements in pairs. |
default MutableList<IntIntPair> |
MutableIntList.zipInt(IntIterable iterable)
Returns a
MutableList formed from this MutableIntList and another IntList by
combining corresponding elements in pairs. |
default MutableList<LongLongPair> |
MutableLongList.zipLong(LongIterable iterable)
Returns a
MutableList formed from this MutableLongList and another LongList by
combining corresponding elements in pairs. |
default MutableList<ShortShortPair> |
MutableShortList.zipShort(ShortIterable iterable)
Returns a
MutableList formed from this MutableShortList and another ShortList by
combining corresponding elements in pairs. |
| Modifier and Type | Method and Description |
|---|---|
<VV> MutableList<VV> |
MutableOrderedMap.collect(Function<? super V,? extends VV> function) |
<V1> MutableList<V1> |
MutableOrderedMap.collectIf(Predicate<? super V> predicate,
Function<? super V,? extends V1> function) |
<P,V1> MutableList<V1> |
MutableOrderedMap.collectWith(Function2<? super V,? super P,? extends V1> function,
P parameter) |
MutableList<V> |
MutableOrderedMap.distinct() |
<V1> MutableList<V1> |
MutableOrderedMap.flatCollect(Function<? super V,? extends Iterable<V1>> function) |
default <P,V1> MutableList<V1> |
MutableOrderedMap.flatCollectWith(Function2<? super V,? super P,? extends Iterable<V1>> function,
P parameter) |
MutableList<V> |
MutableOrderedMap.reject(Predicate<? super V> predicate) |
<P> MutableList<V> |
MutableOrderedMap.rejectWith(Predicate2<? super V,? super P> predicate,
P parameter) |
MutableList<V> |
MutableOrderedMap.select(Predicate<? super V> predicate) |
<S> MutableList<S> |
MutableOrderedMap.selectInstancesOf(Class<S> clazz) |
<P> MutableList<V> |
MutableOrderedMap.selectWith(Predicate2<? super V,? super P> predicate,
P parameter) |
<S> MutableList<Pair<V,S>> |
MutableOrderedMap.zip(Iterable<S> that) |
MutableList<Pair<V,Integer>> |
MutableOrderedMap.zipWithIndex() |
| Modifier and Type | Method and Description |
|---|---|
<R> MutableList<R> |
MutableSortedMap.collect(Function<? super V,? extends R> function) |
<R> MutableList<R> |
MutableSortedMap.collectIf(Predicate<? super V> predicate,
Function<? super V,? extends R> function) |
<P,VV> MutableList<VV> |
MutableSortedMap.collectWith(Function2<? super V,? super P,? extends VV> function,
P parameter) |
default <R> MutableList<R> |
MutableSortedMap.collectWithIndex(ObjectIntToObjectFunction<? super V,? extends R> function) |
MutableList<V> |
MutableSortedMap.distinct() |
<R> MutableList<R> |
MutableSortedMap.flatCollect(Function<? super V,? extends Iterable<R>> function) |
default <P,R> MutableList<R> |
MutableSortedMap.flatCollectWith(Function2<? super V,? super P,? extends Iterable<R>> function,
P parameter) |
MutableList<V> |
MutableSortedMap.reject(Predicate<? super V> predicate) |
<P> MutableList<V> |
MutableSortedMap.rejectWith(Predicate2<? super V,? super P> predicate,
P parameter) |
MutableList<V> |
MutableSortedMap.select(Predicate<? super V> predicate) |
<S> MutableList<S> |
MutableSortedMap.selectInstancesOf(Class<S> clazz) |
<P> MutableList<V> |
MutableSortedMap.selectWith(Predicate2<? super V,? super P> predicate,
P parameter) |
<S> MutableList<Pair<V,S>> |
MutableSortedMap.zip(Iterable<S> that) |
MutableList<Pair<V,Integer>> |
MutableSortedMap.zipWithIndex() |
| Modifier and Type | Method and Description |
|---|---|
MutableList<V> |
MutableListMultimap.get(K key) |
MutableList<V> |
MutableListMultimap.getIfAbsentPutAll(K key,
Iterable<? extends V> values) |
MutableList<V> |
MutableListMultimap.removeAll(Object key) |
MutableList<V> |
MutableListMultimap.replaceValues(K key,
Iterable<? extends V> values) |
| Modifier and Type | Method and Description |
|---|---|
void |
MutableListMultimap.forEachKeyMutableList(Procedure2<? super K,? super MutableList<V>> procedure) |
| Modifier and Type | Method and Description |
|---|---|
MutableList<T> |
PartitionMutableList.getRejected() |
MutableList<T> |
PartitionMutableList.getSelected() |
| Modifier and Type | Method and Description |
|---|---|
<V> MutableList<V> |
MutableSortedSet.collect(Function<? super T,? extends V> function) |
<V> MutableList<V> |
MutableSortedSet.collectIf(Predicate<? super T> predicate,
Function<? super T,? extends V> function) |
<P,V> MutableList<V> |
MutableSortedSet.collectWith(Function2<? super T,? super P,? extends V> function,
P parameter) |
default <V> MutableList<V> |
MutableSortedSet.collectWithIndex(ObjectIntToObjectFunction<? super T,? extends V> function) |
<V> MutableList<V> |
MutableSortedSet.flatCollect(Function<? super T,? extends Iterable<V>> function) |
default <P,V> MutableList<V> |
MutableSortedSet.flatCollectWith(Function2<? super T,? super P,? extends Iterable<V>> function,
P parameter) |
<S> MutableList<Pair<T,S>> |
MutableSortedSet.zip(Iterable<S> that) |
Copyright © 2004–2022. All rights reserved.