Package | Description |
---|---|
com.gs.collections.api |
This package contains interfaces for GS Collections API.
|
com.gs.collections.api.map |
This package contains interfaces for map API which enhance the performance and functionality of
Map |
com.gs.collections.api.multimap |
This package contains interfaces for
Multimap . |
com.gs.collections.api.multimap.bag |
This package contains interfaces for
BagMultimap . |
com.gs.collections.api.multimap.list |
This package contains interfaces for
ListMultimap . |
com.gs.collections.api.multimap.ordered | |
com.gs.collections.api.multimap.set |
This package contains interfaces for
SetMultimap . |
com.gs.collections.api.multimap.sortedbag |
This package contains interfaces for
SortedBagMultimap . |
com.gs.collections.api.multimap.sortedset |
This package contains interfaces for
SortedSetMultimap . |
com.gs.collections.impl |
This package contains implementations for GS Collections API.
|
com.gs.collections.impl.block.factory |
This package contains factory implementations for
Function , Predicate , SerializableComparator and Procedure . |
com.gs.collections.impl.multimap |
This package contains implementations of the
Multimap interface. |
com.gs.collections.impl.multimap.bag |
This package contains implementations of the
BagMultimap interface. |
com.gs.collections.impl.multimap.bag.sorted | |
com.gs.collections.impl.multimap.list |
This package contains implementations of the
ListMultimap interface. |
com.gs.collections.impl.multimap.set |
This package contains implementations of the
SetMultimap interface. |
com.gs.collections.impl.multimap.set.sorted |
This package contains implementations of the
SortedSetMultimap interface. |
com.gs.collections.impl.multimap.set.strategy |
This package contains implementations of the
SetMultimap interface which use a set with user-defined HashingStrategy as their underlying store for the multiple values of a given key. |
com.gs.collections.impl.test |
This package contains
SerializeTestHelper and Verify classes. |
Modifier and Type | Method and Description |
---|---|
<V> Multimap<V,T> |
RichIterable.groupBy(Function<? super T,? extends V> function)
For each element of the iterable, the function is evaluated and the results of these evaluations are collected
into a new multimap, where the transformed value is the key and the original values are added to the same (or similar)
species of collection as the source iterable.
|
<V> Multimap<V,T> |
ParallelIterable.groupBy(Function<? super T,? extends V> function) |
<V> Multimap<V,T> |
RichIterable.groupByEach(Function<? super T,? extends Iterable<V>> function)
Similar to
RichIterable.groupBy(Function) , except the result of evaluating function will return a collection of keys
for each value. |
<V> Multimap<V,T> |
ParallelIterable.groupByEach(Function<? super T,? extends Iterable<V>> function) |
Modifier and Type | Method and Description |
---|---|
Multimap<V,K> |
MapIterable.flip()
Given a map from Domain -> Range return a multimap from Range -> Domain.
|
Modifier and Type | Interface and Description |
---|---|
interface |
ImmutableMultimap<K,V> |
interface |
MutableMultimap<K,V> |
Modifier and Type | Method and Description |
---|---|
Multimap<K,V> |
Multimap.newEmpty()
Creates a new instance of the same implementation type, using the default capacity and growth parameters.
|
Modifier and Type | Method and Description |
---|---|
<KK extends K,VV extends V> |
MutableMultimap.putAll(Multimap<KK,VV> multimap) |
Modifier and Type | Interface and Description |
---|---|
interface |
BagMultimap<K,V> |
interface |
ImmutableBagMultimap<K,V> |
interface |
MutableBagMultimap<K,V> |
interface |
UnsortedBagMultimap<K,V> |
Modifier and Type | Interface and Description |
---|---|
interface |
ImmutableListMultimap<K,V> |
interface |
ListMultimap<K,V> |
interface |
MutableListMultimap<K,V> |
Modifier and Type | Interface and Description |
---|---|
interface |
ReversibleIterableMultimap<K,V> |
interface |
SortedIterableMultimap<K,V> |
Modifier and Type | Interface and Description |
---|---|
interface |
ImmutableSetMultimap<K,V> |
interface |
MutableSetMultimap<K,V> |
interface |
SetMultimap<K,V> |
interface |
UnsortedSetMultimap<K,V> |
Modifier and Type | Interface and Description |
---|---|
interface |
ImmutableSortedBagMultimap<K,V> |
interface |
MutableSortedBagMultimap<K,V> |
interface |
SortedBagMultimap<K,V> |
Modifier and Type | Interface and Description |
---|---|
interface |
ImmutableSortedSetMultimap<K,V> |
interface |
MutableSortedSetMultimap<K,V> |
interface |
SortedSetMultimap<K,V> |
Modifier and Type | Method and Description |
---|---|
<V> Multimap<V,T> |
SynchronizedRichIterable.groupBy(Function<? super T,? extends V> function) |
<V> Multimap<V,T> |
UnmodifiableRichIterable.groupBy(Function<? super T,? extends V> function) |
<V> Multimap<V,T> |
SynchronizedRichIterable.groupByEach(Function<? super T,? extends Iterable<V>> function) |
<V> Multimap<V,T> |
UnmodifiableRichIterable.groupByEach(Function<? super T,? extends Iterable<V>> function) |
Modifier and Type | Method and Description |
---|---|
static <K,V> Function<K,RichIterable<V>> |
MultimapFunctions.get(Multimap<K,V> multimap) |
Modifier and Type | Class and Description |
---|---|
class |
AbstractImmutableMultimap<K,V,C extends ImmutableCollection<V>> |
class |
AbstractMultimap<K,V,C extends RichIterable<V>> |
class |
AbstractMutableMultimap<K,V,C extends MutableCollection<V>> |
class |
AbstractSynchronizedPutMultimap<K,V,C extends MutableCollection<V>> |
Modifier and Type | Method and Description |
---|---|
<KK extends K,VV extends V> |
AbstractMutableMultimap.putAll(Multimap<KK,VV> multimap) |
Modifier and Type | Class and Description |
---|---|
class |
HashBagMultimap<K,V> |
class |
ImmutableBagMultimapImpl<K,V>
The default ImmutableBagMultimap implementation.
|
class |
SynchronizedPutHashBagMultimap<K,V>
A Multimap that is optimized for parallel writes, but is not protected for concurrent reads.
|
class |
TreeBagMultimap<K,V>
Deprecated.
in 5.0. Use
TreeBagMultimap instead. |
Modifier and Type | Method and Description |
---|---|
static <K,V> HashBagMultimap<K,V> |
HashBagMultimap.newMultimap(Multimap<? extends K,? extends V> multimap) |
static <K,V> SynchronizedPutHashBagMultimap<K,V> |
SynchronizedPutHashBagMultimap.newMultimap(Multimap<? extends K,? extends V> multimap) |
static <K,V> TreeBagMultimap<K,V> |
TreeBagMultimap.newMultimap(Multimap<? extends K,? extends V> multimap)
Deprecated.
|
Constructor and Description |
---|
HashBagMultimap(Multimap<? extends K,? extends V> multimap) |
SynchronizedPutHashBagMultimap(Multimap<? extends K,? extends V> multimap) |
TreeBagMultimap(Multimap<? extends K,? extends V> multimap)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static <K,V> TreeBagMultimap<K,V> |
TreeBagMultimap.newMultimap(Multimap<? extends K,? extends V> multimap) |
Constructor and Description |
---|
TreeBagMultimap(Multimap<? extends K,? extends V> multimap) |
Modifier and Type | Class and Description |
---|---|
class |
FastListMultimap<K,V> |
class |
ImmutableListMultimapImpl<K,V>
The default ImmutableListMultimap implementation.
|
class |
SynchronizedPutFastListMultimap<K,V>
A Multimap that is optimized for parallel writes, but is not protected for concurrent reads.
|
Modifier and Type | Method and Description |
---|---|
static <K,V> SynchronizedPutFastListMultimap<K,V> |
SynchronizedPutFastListMultimap.newMultimap(Multimap<? extends K,? extends V> multimap) |
static <K,V> FastListMultimap<K,V> |
FastListMultimap.newMultimap(Multimap<? extends K,? extends V> multimap) |
Constructor and Description |
---|
FastListMultimap(Multimap<? extends K,? extends V> multimap) |
SynchronizedPutFastListMultimap(Multimap<? extends K,? extends V> multimap) |
Modifier and Type | Class and Description |
---|---|
class |
ImmutableSetMultimapImpl<K,V>
The default ImmutableBagMultimap implementation.
|
class |
SynchronizedPutUnifiedSetMultimap<K,V>
A Multimap that is optimized for parallel writes, but is not protected for concurrent reads.
|
class |
UnifiedSetMultimap<K,V> |
Modifier and Type | Method and Description |
---|---|
static <K,V> UnifiedSetMultimap<K,V> |
UnifiedSetMultimap.newMultimap(Multimap<? extends K,? extends V> multimap) |
static <K,V> SynchronizedPutUnifiedSetMultimap<K,V> |
SynchronizedPutUnifiedSetMultimap.newMultimap(Multimap<? extends K,? extends V> multimap) |
Constructor and Description |
---|
SynchronizedPutUnifiedSetMultimap(Multimap<? extends K,? extends V> multimap) |
UnifiedSetMultimap(Multimap<? extends K,? extends V> multimap) |
Modifier and Type | Class and Description |
---|---|
class |
ImmutableSortedSetMultimapImpl<K,V>
The default ImmutableSortedSetMultimap implementation.
|
class |
TreeSortedSetMultimap<K,V> |
Modifier and Type | Method and Description |
---|---|
static <K,V> TreeSortedSetMultimap<K,V> |
TreeSortedSetMultimap.newMultimap(Multimap<? extends K,? extends V> multimap) |
Constructor and Description |
---|
TreeSortedSetMultimap(Multimap<? extends K,? extends V> multimap) |
Modifier and Type | Class and Description |
---|---|
class |
UnifiedSetWithHashingStrategyMultimap<K,V> |
Modifier and Type | Method and Description |
---|---|
static <K,V> UnifiedSetWithHashingStrategyMultimap<K,V> |
UnifiedSetWithHashingStrategyMultimap.newMultimap(HashingStrategy<? super V> hashingStrategy,
Multimap<? extends K,? extends V> multimap) |
Constructor and Description |
---|
UnifiedSetWithHashingStrategyMultimap(HashingStrategy<? super V> hashingStrategy,
Multimap<? extends K,? extends V> multimap) |
Modifier and Type | Method and Description |
---|---|
static void |
Verify.assertContainsAllEntries(Multimap<?,?> actualMultimap,
Object... keyValues)
Assert the given
Multimap contains all of the given keys and values. |
static void |
Verify.assertContainsAllEntries(String multimapName,
Multimap<?,?> actualMultimap,
Object... expectedKeyValues)
Assert the given
Multimap contains all of the given keys and values. |
static <K,V> void |
Verify.assertContainsEntry(K expectedKey,
V expectedValue,
Multimap<K,V> actualMultimap)
Assert that the given
Multimap contains an entry with the given key and value. |
static <K,V> void |
Verify.assertContainsEntry(String multimapName,
K expectedKey,
V expectedValue,
Multimap<K,V> actualMultimap)
Assert that the given
Multimap contains an entry with the given key and value. |
static void |
Verify.assertEmpty(Multimap<?,?> actualMultimap)
Assert that the given
Multimap is empty. |
static void |
Verify.assertEmpty(String multimapName,
Multimap<?,?> actualMultimap)
Assert that the given
Multimap is empty. |
static void |
Verify.assertNotEmpty(Multimap<?,?> actualMultimap)
Assert that the given
Multimap is not empty. |
static void |
Verify.assertNotEmpty(String multimapName,
Multimap<?,?> actualMultimap)
Assert that the given
Multimap is not empty. |
static void |
Verify.assertSize(int expectedSize,
Multimap<?,?> actualMultimap)
Assert the size of the given
Multimap . |
static void |
Verify.assertSize(String multimapName,
int expectedSize,
Multimap<?,?> actualMultimap)
Assert the size of the given
Multimap . |
Copyright © 2004–2018. All rights reserved.