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.multimap.bag |
This package contains interfaces for
BagMultimap . |
org.eclipse.collections.api.partition.bag |
This package contains interfaces for
PartitionBag . |
org.eclipse.collections.impl.bag.mutable |
This package contains implementations of the
MutableBag interface. |
org.eclipse.collections.impl.bag.sorted.mutable |
This package contains implementations of
MutableSortedBag . |
org.eclipse.collections.impl.bag.strategy.mutable |
This package contains implementations of bags with user defined
HashingStrategy s. |
org.eclipse.collections.impl.collection | |
org.eclipse.collections.impl.map.ordered.mutable |
Modifier and Type | Method | Description |
---|---|---|
default <V,R extends MutableBagIterable<V>> |
RichIterable.countBy(Function<? super T,? extends V> function,
R target) |
This method will count the number of occurrences of each value calculated by applying the
function to each element of the collection.
|
default <V,R extends MutableBagIterable<V>> |
RichIterable.countByEach(Function<? super T,? extends java.lang.Iterable<V>> function,
R target) |
This method will count the number of occurrences of each value calculated by applying the
function to each element of the collection.
|
default <V,P,R extends MutableBagIterable<V>> |
RichIterable.countByWith(Function2<? super T,? super P,? extends V> function,
P parameter,
R target) |
This method will count the number of occurrences of each value calculated by applying the
function to each element of the collection with the specified parameter as the second argument.
|
Modifier and Type | Interface | Description |
---|---|---|
interface |
MultiReaderBag<T> |
A MultiReaderBag provides thread-safe iteration for a bag through methods
withReadLockAndDelegate() and withWriteLockAndDelegate() . |
interface |
MutableBag<T> |
A MutableBag is a Collection whose elements are unordered and may contain duplicate entries.
|
Modifier and Type | Method | Description |
---|---|---|
MutableBagIterable<T> |
MutableBagIterable.reject(Predicate<? super T> predicate) |
|
<P> MutableBagIterable<T> |
MutableBagIterable.rejectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
|
MutableBagIterable<T> |
MutableBagIterable.select(Predicate<? super T> predicate) |
|
MutableBagIterable<T> |
MutableBagIterable.selectByOccurrences(IntPredicate predicate) |
|
default MutableBagIterable<T> |
MutableBagIterable.selectDuplicates() |
|
<S> MutableBagIterable<S> |
MutableBagIterable.selectInstancesOf(java.lang.Class<S> clazz) |
|
<P> MutableBagIterable<T> |
MutableBagIterable.selectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
|
MutableBagIterable<T> |
MutableBagIterable.tap(Procedure<? super T> procedure) |
|
MutableBagIterable<T> |
MutableBagIterable.with(T element) |
|
MutableBagIterable<T> |
MutableBagIterable.withAll(java.lang.Iterable<? extends T> elements) |
|
MutableBagIterable<T> |
MutableBagIterable.without(T element) |
|
MutableBagIterable<T> |
MutableBagIterable.withoutAll(java.lang.Iterable<? extends T> elements) |
Modifier and Type | Interface | Description |
---|---|---|
interface |
MutableSortedBag<T> |
Modifier and Type | Method | Description |
---|---|---|
MutableBagIterable<V> |
MutableBagIterableMultimap.get(K key) |
|
MutableBagIterable<V> |
MutableBagIterableMultimap.getIfAbsentPutAll(K key,
java.lang.Iterable<? extends V> values) |
|
MutableBagIterable<V> |
MutableBagIterableMultimap.removeAll(java.lang.Object key) |
|
MutableBagIterable<V> |
MutableBagIterableMultimap.replaceValues(K key,
java.lang.Iterable<? extends V> values) |
Modifier and Type | Method | Description |
---|---|---|
MutableBagIterable<T> |
PartitionMutableBagIterable.getRejected() |
|
MutableBagIterable<T> |
PartitionMutableBagIterable.getSelected() |
Modifier and Type | Class | Description |
---|---|---|
class |
AbstractHashBag<T> |
|
class |
AbstractMutableBag<T> |
|
class |
AbstractMutableBagIterable<T> |
|
class |
HashBag<T> |
A HashBag is a MutableBag which uses a Map as its underlying data store.
|
class |
MultiReaderHashBag<T> |
MultiReaderHashBag provides a thread-safe wrapper around a HashBag, using a ReentrantReadWriteLock.
|
class |
SynchronizedBag<T> |
A synchronized view of a
MutableBag . |
class |
UnmodifiableBag<T> |
An unmodifiable view of a bag.
|
Modifier and Type | Class | Description |
---|---|---|
class |
AbstractMutableSortedBag<T> |
|
class |
SynchronizedSortedBag<T> |
A synchronized view of a
MutableSortedBag . |
class |
TreeBag<T> |
A TreeBag is a MutableSortedBag which uses a SortedMap as its underlying data store.
|
class |
UnmodifiableSortedBag<T> |
An unmodifiable view of a SortedBag.
|
Modifier and Type | Class | Description |
---|---|---|
class |
HashBagWithHashingStrategy<T> |
Modifier and Type | Method | Description |
---|---|---|
<V,R extends MutableBagIterable<V>> |
AbstractSynchronizedRichIterable.countBy(Function<? super T,? extends V> function,
R target) |
|
<V,R extends MutableBagIterable<V>> |
AbstractSynchronizedRichIterable.countByEach(Function<? super T,? extends java.lang.Iterable<V>> function,
R target) |
|
<V,P,R extends MutableBagIterable<V>> |
AbstractSynchronizedRichIterable.countByWith(Function2<? super T,? super P,? extends V> function,
P parameter,
R target) |
Modifier and Type | Method | Description |
---|---|---|
<VV,R extends MutableBagIterable<VV>> |
UnmodifiableMutableOrderedMap.countBy(Function<? super V,? extends VV> function,
R target) |
|
<VV,P,R extends MutableBagIterable<VV>> |
UnmodifiableMutableOrderedMap.countByWith(Function2<? super V,? super P,? extends VV> function,
P parameter,
R target) |
Copyright © 2004–2020. All rights reserved.