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.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> |
ParallelIterable.toList() |
MutableList<T> |
RichIterable.toList()
Converts the collection to a MutableList implementation.
|
MutableList<T> |
ParallelIterable.toSortedList() |
MutableList<T> |
RichIterable.toSortedList()
Converts the collection to a MutableList implementation and sorts it using the natural order of the elements.
|
MutableList<T> |
ParallelIterable.toSortedList(Comparator<? super T> comparator) |
MutableList<T> |
RichIterable.toSortedList(Comparator<? super T> comparator)
Converts the collection to a MutableList implementation and sorts it using the specified comparator.
|
<V extends Comparable<? super V>> |
ParallelIterable.toSortedListBy(Function<? super T,? extends V> function) |
<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 . |
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 |
---|---|
<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) |
<V> MutableList<V> |
MutableSortedBag.flatCollect(Function<? super T,? extends Iterable<V>> function) |
<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.of()
Same as
MutableListFactory.empty() . |
<T> MutableList<T> |
MutableListFactory.of(T... items)
Same as
MutableListFactory.with(Object[]) . |
<T> MutableList<T> |
MutableListFactory.ofAll(Iterable<? extends T> iterable)
Same as
MutableListFactory.withAll(Iterable) . |
<T> MutableList<T> |
MutableListFactory.with()
Same as
MutableListFactory.empty() . |
<T> MutableList<T> |
MutableListFactory.with(T... items) |
<T> MutableList<T> |
MutableListFactory.withAll(Iterable<? extends T> iterable) |
<T> MutableList<T> |
MutableListFactory.withNValues(int size,
Function0<T> factory) |
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.
|
Modifier and Type | Method and Description |
---|---|
MutableList<T> |
MutableList.asSynchronized() |
MutableList<T> |
MutableList.asUnmodifiable()
Returns an unmodifable view of the list.
|
MutableList<T> |
MutableList.clone() |
<V> MutableList<V> |
MutableList.collect(Function<? super T,? extends V> function) |
<V> MutableList<V> |
MutableList.collectIf(Predicate<? super T> predicate,
Function<? super T,? extends V> function) |
<P,V> MutableList<V> |
MutableList.collectWith(Function2<? super T,? super P,? extends V> function,
P parameter) |
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. |
MutableList<T> |
MutableList.drop(int count) |
MutableList<T> |
MutableList.dropWhile(Predicate<? super T> predicate) |
<V> MutableList<V> |
MutableList.flatCollect(Function<? super T,? extends Iterable<V>> function) |
MutableList<T> |
MutableList.newEmpty() |
MutableList<T> |
MutableList.reject(Predicate<? super T> predicate) |
<P> MutableList<T> |
MutableList.rejectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
MutableList<T> |
MutableList.reverseThis()
Mutates the current list by reversing its order and returns the current list as a result
|
MutableList<T> |
MutableList.select(Predicate<? super T> predicate) |
<S> MutableList<S> |
MutableList.selectInstancesOf(Class<S> clazz) |
<P> MutableList<T> |
MutableList.selectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
MutableList<T> |
MutableList.shuffleThis() |
MutableList<T> |
MutableList.shuffleThis(Random rnd) |
MutableList<T> |
MutableList.sortThis()
Sorts the internal data structure of this list and returns the list itself as a convenience.
|
MutableList<T> |
MutableList.sortThis(Comparator<? super T> comparator)
Sorts the internal data structure of this list and returns the list itself as a convenience.
|
<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) |
MutableList<T> |
MutableList.tap(Procedure<? super T> procedure) |
MutableList<T> |
MutableList.toReversed()
Returns a new MutableList in reverse order
|
MutableList<T> |
MutableList.with(T element) |
MutableList<T> |
MutableList.withAll(Iterable<? extends T> elements) |
MutableList<T> |
MutableList.without(T element) |
MutableList<T> |
MutableList.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 |
---|---|
<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) |
Modifier and Type | Method and Description |
---|---|
<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) |
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) |
MutableList<V> |
MutableSortedMap.distinct() |
<R> MutableList<R> |
MutableSortedMap.flatCollect(Function<? super V,? extends Iterable<R>> function) |
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.removeAll(Object key) |
MutableList<V> |
MutableListMultimap.replaceValues(K key,
Iterable<? extends V> values) |
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) |
<V> MutableList<V> |
MutableSortedSet.flatCollect(Function<? super T,? extends Iterable<V>> function) |
<S> MutableList<Pair<T,S>> |
MutableSortedSet.zip(Iterable<S> that) |
Copyright © 2004–2016. All rights reserved.