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.map |
This package contains interfaces for map API which enhance the performance and functionality of
Map |
org.eclipse.collections.api.map.primitive |
This package contains API for primitive to primitive maps, primitive to object maps and object to primitive maps with mutable and immutable variants.
|
org.eclipse.collections.api.multimap |
This package contains interfaces for
Multimap . |
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 |
This package contains implementations for Eclipse Collections API.
|
org.eclipse.collections.impl.bag | |
org.eclipse.collections.impl.bag.immutable |
This package contains implementations of the
ImmutableBag interface. |
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.multimap |
This package contains implementations of the
Multimap interface. |
org.eclipse.collections.impl.test |
This package contains
SerializeTestHelper and Verify classes. |
Modifier and Type | Method | Description |
---|---|---|
default <V> Bag<V> |
RichIterable.countBy(Function<? super T,? extends V> function) |
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> Bag<V> |
RichIterable.countByWith(Function2<? super T,? super P,? extends V> function,
P parameter) |
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 |
ImmutableBag<T> |
|
interface |
ImmutableBagIterable<T> |
|
interface |
MutableBag<T> |
A MutableBag is a Collection whose elements are unordered and may contain duplicate entries.
|
interface |
MutableBagIterable<T> |
|
interface |
UnsortedBag<T> |
Modifier and Type | Method | Description |
---|---|---|
Bag<T> |
Bag.reject(Predicate<? super T> predicate) |
|
<P> Bag<T> |
Bag.rejectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
|
Bag<T> |
Bag.select(Predicate<? super T> predicate) |
|
Bag<T> |
Bag.selectByOccurrences(IntPredicate predicate) |
Returns all elements of the bag that have a number of occurrences that satisfy the predicate.
|
<S> Bag<S> |
Bag.selectInstancesOf(java.lang.Class<S> clazz) |
|
<P> Bag<T> |
Bag.selectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
|
Bag<T> |
Bag.tap(Procedure<? super T> procedure) |
Modifier and Type | Method | Description |
---|---|---|
<V> Bag<V> |
BooleanBag.collect(BooleanToObjectFunction<? extends V> function) |
|
<V> Bag<V> |
ByteBag.collect(ByteToObjectFunction<? extends V> function) |
|
<V> Bag<V> |
CharBag.collect(CharToObjectFunction<? extends V> function) |
|
<V> Bag<V> |
DoubleBag.collect(DoubleToObjectFunction<? extends V> function) |
|
<V> Bag<V> |
FloatBag.collect(FloatToObjectFunction<? extends V> function) |
|
<V> Bag<V> |
IntBag.collect(IntToObjectFunction<? extends V> function) |
|
<V> Bag<V> |
LongBag.collect(LongToObjectFunction<? extends V> function) |
|
<V> Bag<V> |
ShortBag.collect(ShortToObjectFunction<? extends V> function) |
Modifier and Type | Interface | Description |
---|---|---|
interface |
ImmutableSortedBag<T> |
ImmutableSortedBag is the non-modifiable equivalent interface to
MutableSortedBag . |
interface |
MutableSortedBag<T> |
|
interface |
SortedBag<T> |
An Iterable whose elements are sorted by some comparator or their natural ordering and may contain duplicate entries.
|
Modifier and Type | Method | Description |
---|---|---|
<V1> Bag<V1> |
UnsortedMapIterable.collect(Function<? super V,? extends V1> function) |
|
<V1> Bag<V1> |
UnsortedMapIterable.collectIf(Predicate<? super V> predicate,
Function<? super V,? extends V1> function) |
|
<P,V1> Bag<V1> |
UnsortedMapIterable.collectWith(Function2<? super V,? super P,? extends V1> function,
P parameter) |
|
<V1> Bag<V1> |
UnsortedMapIterable.flatCollect(Function<? super V,? extends java.lang.Iterable<V1>> function) |
|
Bag<V> |
UnsortedMapIterable.reject(Predicate<? super V> predicate) |
|
<P> Bag<V> |
UnsortedMapIterable.rejectWith(Predicate2<? super V,? super P> predicate,
P parameter) |
|
Bag<V> |
UnsortedMapIterable.select(Predicate<? super V> predicate) |
|
<S> Bag<S> |
UnsortedMapIterable.selectInstancesOf(java.lang.Class<S> clazz) |
|
<P> Bag<V> |
UnsortedMapIterable.selectWith(Predicate2<? super V,? super P> predicate,
P parameter) |
|
<S> Bag<Pair<V,S>> |
UnsortedMapIterable.zip(java.lang.Iterable<S> that) |
Deprecated.
in 6.0. Use
OrderedIterable.zip(Iterable) instead. |
Modifier and Type | Method | Description |
---|---|---|
<V> Bag<V> |
BooleanValuesMap.collect(BooleanToObjectFunction<? extends V> function) |
|
<V> Bag<V> |
ByteValuesMap.collect(ByteToObjectFunction<? extends V> function) |
|
<V> Bag<V> |
CharValuesMap.collect(CharToObjectFunction<? extends V> function) |
|
<V> Bag<V> |
DoubleValuesMap.collect(DoubleToObjectFunction<? extends V> function) |
|
<V> Bag<V> |
FloatValuesMap.collect(FloatToObjectFunction<? extends V> function) |
|
<V> Bag<V> |
IntValuesMap.collect(IntToObjectFunction<? extends V> function) |
|
<V> Bag<V> |
LongValuesMap.collect(LongToObjectFunction<? extends V> function) |
|
<VV> Bag<VV> |
PrimitiveObjectMap.collect(Function<? super V,? extends VV> function) |
|
<V> Bag<V> |
ShortValuesMap.collect(ShortToObjectFunction<? extends V> function) |
|
<VV> Bag<VV> |
PrimitiveObjectMap.collectIf(Predicate<? super V> predicate,
Function<? super V,? extends VV> function) |
|
<P,VV> Bag<VV> |
PrimitiveObjectMap.collectWith(Function2<? super V,? super P,? extends VV> function,
P parameter) |
|
<VV> Bag<VV> |
PrimitiveObjectMap.flatCollect(Function<? super V,? extends java.lang.Iterable<VV>> function) |
|
Bag<V> |
PrimitiveObjectMap.reject(Predicate<? super V> predicate) |
|
<P> Bag<V> |
PrimitiveObjectMap.rejectWith(Predicate2<? super V,? super P> predicate,
P parameter) |
|
Bag<V> |
PrimitiveObjectMap.select(Predicate<? super V> predicate) |
|
<S> Bag<S> |
PrimitiveObjectMap.selectInstancesOf(java.lang.Class<S> clazz) |
|
<P> Bag<V> |
PrimitiveObjectMap.selectWith(Predicate2<? super V,? super P> predicate,
P parameter) |
|
<S> Bag<Pair<V,S>> |
PrimitiveObjectMap.zip(java.lang.Iterable<S> that) |
Deprecated.
in 6.0. Use
OrderedIterable.zip(Iterable) instead. |
Modifier and Type | Method | Description |
---|---|---|
Bag<K> |
Multimap.keyBag() |
Returns a
Bag of keys with the count corresponding to the number of mapped values. |
Modifier and Type | Method | Description |
---|---|---|
Bag<V> |
BagMultimap.get(K key) |
Modifier and Type | Method | Description |
---|---|---|
Bag<T> |
PartitionBag.getRejected() |
|
Bag<T> |
PartitionBag.getSelected() |
Modifier and Type | Method | Description |
---|---|---|
<V> Bag<V> |
AbstractRichIterable.countBy(Function<? super T,? extends V> function) |
|
<V,P> Bag<V> |
AbstractRichIterable.countByWith(Function2<? super T,? super P,? extends V> function,
P parameter) |
Modifier and Type | Class | Description |
---|---|---|
class |
AbstractBag<T> |
Modifier and Type | Class | Description |
---|---|---|
class |
AbstractImmutableBag<T> |
|
class |
AbstractImmutableBagIterable<T> |
|
class |
ImmutableArrayBag<T> |
|
class |
ImmutableHashBag<T> |
Modifier and Type | Method | Description |
---|---|---|
static <T> ImmutableArrayBag<T> |
ImmutableArrayBag.copyFrom(Bag<T> bag) |
|
static <T> ImmutableHashBag<T> |
ImmutableHashBag.newBagWith(Bag<? extends T> bag) |
Constructor | Description |
---|---|
ImmutableHashBag(Bag<? extends T> source) |
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 | Method | Description |
---|---|---|
static <E> HashBag<E> |
HashBag.newBag(Bag<? extends E> source) |
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 |
---|---|---|
static <E> HashBagWithHashingStrategy<E> |
HashBagWithHashingStrategy.newBag(HashingStrategy<? super E> hashingStrategy,
Bag<? extends E> source) |
Modifier and Type | Method | Description |
---|---|---|
<V> Bag<V> |
AbstractSynchronizedRichIterable.countBy(Function<? super T,? extends V> function) |
|
<V,P> Bag<V> |
AbstractSynchronizedRichIterable.countByWith(Function2<? super T,? super P,? extends V> function,
P parameter) |
Modifier and Type | Method | Description |
---|---|---|
Bag<K> |
AbstractMultimap.keyBag() |
|
Bag<K> |
AbstractSynchronizedMultimap.keyBag() |
Modifier and Type | Method | Description |
---|---|---|
static void |
Verify.assertBagsEqual(java.lang.String bagName,
Bag<?> expectedBag,
Bag<?> actualBag) |
|
static void |
Verify.assertBagsEqual(Bag<?> expectedBag,
Bag<?> actualBag) |
Copyright © 2004–2017. All rights reserved.