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.bimap |
This package contains interfaces for BiMap 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.impl |
This package contains implementations for Eclipse Collections API.
|
org.eclipse.collections.impl.bimap | |
org.eclipse.collections.impl.bimap.immutable | |
org.eclipse.collections.impl.bimap.mutable |
This package contains implementations of the
MutableBiMap interface. |
org.eclipse.collections.impl.collection | |
org.eclipse.collections.impl.lazy |
This package contains implementations of the
LazyIterable interface. |
org.eclipse.collections.impl.lazy.parallel | |
org.eclipse.collections.impl.lazy.parallel.list | |
org.eclipse.collections.impl.lazy.parallel.set | |
org.eclipse.collections.impl.lazy.parallel.set.sorted | |
org.eclipse.collections.impl.map |
This package contains implementations of the
MapIterable interface. |
org.eclipse.collections.impl.map.immutable |
This package contains implementations of the
ImmutableMap interface. |
org.eclipse.collections.impl.map.mutable |
This package contains implementations of the
MutableMap interface. |
org.eclipse.collections.impl.map.sorted.immutable |
This package contains implementations of the
MutableSortedMap interface. |
org.eclipse.collections.impl.map.sorted.mutable |
This package contains implementations of the
MutableSortedMap interface. |
org.eclipse.collections.impl.map.strategy.immutable |
This package contains immutable map implementations backed by hashtables that rely on
HashingStrategy s provided by
the developer to compute the hashCode and equals for the objects stored in the map. |
org.eclipse.collections.impl.map.strategy.mutable |
This package contains mutable map implementations backed by hashtables that rely on
HashingStrategy s provided by
the developer to compute the hashCode and equals for the objects stored in the map. |
org.eclipse.collections.impl.test |
This package contains
SerializeTestHelper and Verify classes. |
org.eclipse.collections.impl.utility |
This package contains static utilities that provide iteration pattern implementations which work with JCF collections.
|
Modifier and Type | Method and Description |
---|---|
<K,V> MapIterable<K,V> |
ParallelIterable.aggregateBy(Function<? super T,? extends K> groupBy,
Function0<? extends V> zeroValueFactory,
Function2<? super V,? super T,? extends V> nonMutatingAggregator) |
<K,V> MapIterable<K,V> |
RichIterable.aggregateBy(Function<? super T,? extends K> groupBy,
Function0<? extends V> zeroValueFactory,
Function2<? super V,? super T,? extends V> nonMutatingAggregator)
Applies an aggregate function over the iterable grouping results into a map based on the specific groupBy function.
|
<K,V> MapIterable<K,V> |
ParallelIterable.aggregateInPlaceBy(Function<? super T,? extends K> groupBy,
Function0<? extends V> zeroValueFactory,
Procedure2<? super V,? super T> mutatingAggregator) |
<K,V> MapIterable<K,V> |
RichIterable.aggregateInPlaceBy(Function<? super T,? extends K> groupBy,
Function0<? extends V> zeroValueFactory,
Procedure2<? super V,? super T> mutatingAggregator)
Applies an aggregate procedure over the iterable grouping results into a Map based on the specific groupBy function.
|
<V> MapIterable<V,T> |
ParallelIterable.groupByUniqueKey(Function<? super T,? extends V> function) |
<V> MapIterable<V,T> |
RichIterable.groupByUniqueKey(Function<? super T,? extends V> function)
For each element of the iterable, the function is evaluated and he results of these evaluations are collected
into a new map, where the transformed value is the key.
|
Modifier and Type | Method and Description |
---|---|
MapIterable<T,Integer> |
Bag.toMapOfItemToCount()
Converts the Bag to a Map of the Item type to its count as an Integer.
|
Modifier and Type | Method and Description |
---|---|
<K,V> MapIterable<K,V> |
SortedBag.aggregateBy(Function<? super T,? extends K> groupBy,
Function0<? extends V> zeroValueFactory,
Function2<? super V,? super T,? extends V> nonMutatingAggregator)
Can return an MapIterable that's backed by a LinkedHashMap.
|
<K,V> MapIterable<K,V> |
SortedBag.aggregateInPlaceBy(Function<? super T,? extends K> groupBy,
Function0<? extends V> zeroValueFactory,
Procedure2<? super V,? super T> mutatingAggregator)
Can return an MapIterable that's backed by a LinkedHashMap.
|
Modifier and Type | Interface and Description |
---|---|
interface |
BiMap<K,V>
A map that allows users to look up key-value pairs from either direction.
|
interface |
ImmutableBiMap<K,V>
A
BiMap whose contents cannot be altered after initialization. |
interface |
MutableBiMap<K,V>
A
BiMap whose contents can be altered after initialization. |
Modifier and Type | Interface and Description |
---|---|
interface |
ConcurrentMutableMap<K,V>
A ConcurrentMutableMap provides an api which combines and supports both MutableMap and ConcurrentMap.
|
interface |
FixedSizeMap<K,V>
A FixedSizeMap is a map that may be mutated, but cannot grow or shrink in size.
|
interface |
ImmutableMap<K,V>
An ImmutableMap is different than a JCF Map but in that it has no mutating methods.
|
interface |
ImmutableMapIterable<K,V> |
interface |
ImmutableOrderedMap<K,V> |
interface |
MutableMap<K,V>
A MutableMap is similar to a JCF Map but adds additional useful internal iterator methods.
|
interface |
MutableMapIterable<K,V> |
interface |
MutableOrderedMap<K,V> |
interface |
OrderedMap<K,V>
A map whose keys are ordered but not necessarily sorted, for example a linked hash map.
|
interface |
UnsortedMapIterable<K,V>
An iterable Map whose elements are unsorted.
|
Modifier and Type | Method and Description |
---|---|
<K2,V2> MapIterable<K2,V2> |
MapIterable.collect(Function2<? super K,? super V,Pair<K2,V2>> function)
For each key and value of the map the function is evaluated.
|
<R> MapIterable<K,R> |
MapIterable.collectValues(Function2<? super K,? super V,? extends R> function)
For each key and value of the map the function is evaluated.
|
MapIterable<V,K> |
MapIterable.flipUniqueValues()
Return the MapIterable that is obtained by flipping the direction of this map and making the associations
from value to key.
|
MapIterable<K,V> |
MapIterable.reject(Predicate2<? super K,? super V> predicate)
For each key and value of the map the predicate is evaluated, if the result of the evaluation is false,
that key and value are returned in a new map.
|
MapIterable<K,V> |
MapIterable.select(Predicate2<? super K,? super V> predicate)
For each key and value of the map the predicate is evaluated, if the result of the evaluation is true,
that key and value are returned in a new map.
|
MapIterable<K,V> |
MapIterable.tap(Procedure<? super V> procedure)
Executes the Procedure for each value of the map and returns
this . |
Modifier and Type | Interface and Description |
---|---|
interface |
ImmutableSortedMap<K,V>
An ImmutableSortedMap is different than a JCF SortedMap in that it has no mutating methods, but it shares
the read-only protocol of a SortedMap.
|
interface |
MutableSortedMap<K,V>
A MutableSortedMap is similar to a JCF Map but adds additional useful internal iterator methods.
|
interface |
SortedMapIterable<K,V>
An iterable Map whose elements are sorted.
|
Modifier and Type | Method and Description |
---|---|
<K,V> MapIterable<K,V> |
UnmodifiableRichIterable.aggregateBy(Function<? super T,? extends K> groupBy,
Function0<? extends V> zeroValueFactory,
Function2<? super V,? super T,? extends V> nonMutatingAggregator) |
<K,V> MapIterable<K,V> |
SynchronizedRichIterable.aggregateBy(Function<? super T,? extends K> groupBy,
Function0<? extends V> zeroValueFactory,
Function2<? super V,? super T,? extends V> nonMutatingAggregator) |
<K,V> MapIterable<K,V> |
UnmodifiableRichIterable.aggregateInPlaceBy(Function<? super T,? extends K> groupBy,
Function0<? extends V> zeroValueFactory,
Procedure2<? super V,? super T> mutatingAggregator) |
<K,V> MapIterable<K,V> |
SynchronizedRichIterable.aggregateInPlaceBy(Function<? super T,? extends K> groupBy,
Function0<? extends V> zeroValueFactory,
Procedure2<? super V,? super T> mutatingAggregator) |
<V> MapIterable<V,T> |
UnmodifiableRichIterable.groupByUniqueKey(Function<? super T,? extends V> function) |
<V> MapIterable<V,T> |
SynchronizedRichIterable.groupByUniqueKey(Function<? super T,? extends V> function) |
Modifier and Type | Class and Description |
---|---|
class |
AbstractBiMap<K,V> |
Modifier and Type | Class and Description |
---|---|
class |
AbstractImmutableBiMap<K,V> |
Modifier and Type | Class and Description |
---|---|
class |
HashBiMap<K,V>
A
MutableBiMap which uses two hash tables as its underlying data store. |
class |
SynchronizedBiMap<K,V> |
class |
UnmodifiableBiMap<K,V> |
Modifier and Type | Method and Description |
---|---|
<V> MapIterable<V,T> |
AbstractSynchronizedRichIterable.groupByUniqueKey(Function<? super T,? extends V> function) |
Modifier and Type | Method and Description |
---|---|
<K,V> MapIterable<K,V> |
AbstractLazyIterable.aggregateBy(Function<? super T,? extends K> groupBy,
Function0<? extends V> zeroValueFactory,
Function2<? super V,? super T,? extends V> nonMutatingAggregator) |
<K,V> MapIterable<K,V> |
AbstractLazyIterable.aggregateInPlaceBy(Function<? super T,? extends K> groupBy,
Function0<? extends V> zeroValueFactory,
Procedure2<? super V,? super T> mutatingAggregator) |
<V> MapIterable<V,T> |
AbstractLazyIterable.groupByUniqueKey(Function<? super T,? extends V> function) |
Modifier and Type | Method and Description |
---|---|
<K,V> MapIterable<K,V> |
AbstractMultiReaderParallelIterable.aggregateBy(Function<? super T,? extends K> groupBy,
Function0<? extends V> zeroValueFactory,
Function2<? super V,? super T,? extends V> nonMutatingAggregator) |
<K,V> MapIterable<K,V> |
AbstractSynchronizedParallelIterable.aggregateBy(Function<? super T,? extends K> groupBy,
Function0<? extends V> zeroValueFactory,
Function2<? super V,? super T,? extends V> nonMutatingAggregator) |
<K,V> MapIterable<K,V> |
AbstractParallelIterable.aggregateBy(Function<? super T,? extends K> groupBy,
Function0<? extends V> zeroValueFactory,
Function2<? super V,? super T,? extends V> nonMutatingAggregator) |
<K,V> MapIterable<K,V> |
NonParallelIterable.aggregateBy(Function<? super T,? extends K> groupBy,
Function0<? extends V> zeroValueFactory,
Function2<? super V,? super T,? extends V> nonMutatingAggregator) |
<K,V> MapIterable<K,V> |
AbstractMultiReaderParallelIterable.aggregateInPlaceBy(Function<? super T,? extends K> groupBy,
Function0<? extends V> zeroValueFactory,
Procedure2<? super V,? super T> mutatingAggregator) |
<K,V> MapIterable<K,V> |
AbstractSynchronizedParallelIterable.aggregateInPlaceBy(Function<? super T,? extends K> groupBy,
Function0<? extends V> zeroValueFactory,
Procedure2<? super V,? super T> mutatingAggregator) |
<K,V> MapIterable<K,V> |
AbstractParallelIterable.aggregateInPlaceBy(Function<? super T,? extends K> groupBy,
Function0<? extends V> zeroValueFactory,
Procedure2<? super V,? super T> mutatingAggregator) |
<K,V> MapIterable<K,V> |
NonParallelIterable.aggregateInPlaceBy(Function<? super T,? extends K> groupBy,
Function0<? extends V> zeroValueFactory,
Procedure2<? super V,? super T> mutatingAggregator) |
<V> MapIterable<V,T> |
ParallelDistinctIterable.groupByUniqueKey(Function<? super T,? extends V> function) |
<V> MapIterable<V,T> |
AbstractMultiReaderParallelIterable.groupByUniqueKey(Function<? super T,? extends V> function) |
<V> MapIterable<V,T> |
AbstractSynchronizedParallelIterable.groupByUniqueKey(Function<? super T,? extends V> function) |
<V> MapIterable<V,T> |
AbstractParallelIterable.groupByUniqueKey(Function<? super T,? extends V> function) |
<V> MapIterable<V,T> |
NonParallelIterable.groupByUniqueKey(Function<? super T,? extends V> function) |
Modifier and Type | Method and Description |
---|---|
<V> MapIterable<V,T> |
ListIterableParallelIterable.groupByUniqueKey(Function<? super T,? extends V> function) |
<V> MapIterable<V,T> |
AbstractParallelListIterable.groupByUniqueKey(Function<? super T,? extends V> function) |
Modifier and Type | Method and Description |
---|---|
<V1> MapIterable<V1,V> |
ParallelFlatCollectIterable.groupByUniqueKey(Function<? super V,? extends V1> function) |
<V1> MapIterable<V1,V> |
ParallelCollectIterable.groupByUniqueKey(Function<? super V,? extends V1> function) |
Modifier and Type | Method and Description |
---|---|
<V> MapIterable<V,T> |
AbstractParallelSortedSetIterable.groupByUniqueKey(Function<? super T,? extends V> function) |
Modifier and Type | Class and Description |
---|---|
class |
AbstractMapIterable<K,V> |
class |
AbstractSynchronizedMapIterable<K,V>
A synchronized view of a map.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractImmutableMap<K,V> |
class |
ImmutableUnifiedMap<K,V> |
Modifier and Type | Class and Description |
---|---|
class |
AbstractMutableMap<K,V> |
class |
AbstractMutableMapIterable<K,V> |
class |
ConcurrentHashMap<K,V> |
class |
ConcurrentHashMapUnsafe<K,V> |
class |
ConcurrentMutableHashMap<K,V>
Deprecated.
since 2.0
|
class |
MapAdapter<K,V>
This class provides a MutableMap wrapper around a JDK Collections Map interface instance.
|
class |
SynchronizedMutableMap<K,V>
A synchronized view of a
MutableMap . |
class |
UnifiedMap<K,V>
UnifiedMap stores key/value pairs in a single array, where alternate slots are keys and values.
|
class |
UnmodifiableMutableMap<K,V>
An unmodifiable view of a map.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractImmutableSortedMap<K,V> |
class |
ImmutableTreeMap<K,V> |
Modifier and Type | Class and Description |
---|---|
class |
AbstractMutableSortedMap<K,V> |
class |
SortedMapAdapter<K,V>
This class provides a MutableSortedMap wrapper around a JDK Collections SortedMap interface instance.
|
class |
SynchronizedSortedMap<K,V>
A synchronized view of a SortedMap.
|
class |
TreeSortedMap<K,V> |
class |
UnmodifiableTreeMap<K,V>
An unmodifiable view of a map.
|
Modifier and Type | Class and Description |
---|---|
class |
ImmutableUnifiedMapWithHashingStrategy<K,V> |
Modifier and Type | Class and Description |
---|---|
class |
UnifiedMapWithHashingStrategy<K,V>
UnifiedMapWithHashingStrategy stores key/value pairs in a single array, where alternate slots are keys and values.
|
Modifier and Type | Method and Description |
---|---|
static void |
Verify.assertContainsAllKeyValues(MapIterable<?,?> mapIterable,
Object... keyValues)
Assert that the given
MapIterable contains all of the given keys and values. |
static void |
Verify.assertContainsAllKeyValues(String mapIterableName,
MapIterable<?,?> mapIterable,
Object... expectedKeyValues)
Assert that the given
MapIterable contains all of the given keys and values. |
static void |
Verify.assertContainsKey(Object expectedKey,
MapIterable<?,?> mapIterable)
Assert that the given
MapIterable contains an entry with the given key. |
static void |
Verify.assertContainsKey(String mapIterableName,
Object expectedKey,
MapIterable<?,?> mapIterable)
Assert that the given
MapIterable contains an entry with the given key. |
static void |
Verify.assertContainsKeyValue(Object expectedKey,
Object expectedValue,
MapIterable<?,?> mapIterable)
Assert that the given
MapIterable contains an entry with the given key and value. |
static void |
Verify.assertContainsKeyValue(String mapIterableName,
Object expectedKey,
Object expectedValue,
MapIterable<?,?> mapIterable)
Assert that the given
MapIterable contains an entry with the given key and value. |
Modifier and Type | Method and Description |
---|---|
static <K,V> MutableSetMultimap<V,K> |
MapIterate.flip(MapIterable<K,V> iMap) |
static <K,V> MutableMap<V,K> |
MapIterate.flipUniqueValues(MapIterable<K,V> mapIterable) |
Copyright © 2004–2017. All rights reserved.