MultiValuedMap instances.
It contains various type safe and null safe methods. Additionally, it provides the following decorators:
| Modifier and Type | Field and Description |
|---|---|
| public static final MultiValuedMap |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static < the type of key in the map K, the type of value in the map V> MultiValuedMap | Returns: an emptyMultiValuedMap if the argument is nullthe map, may be null map)Returns an immutable empty |
| public static < the type of key in the map K, the type of value in the map V> MultiValuedMap | Returns: immutable and emptyMultiValuedMapReturns immutable EMPTY_MULTI_VALUED_MAP with generic type safety. |
| public static < the key type K, the value type V> Collection | Returns: the Collection in theMultiValuedMap, or null if input map is nullthe map, final K MultiValuedMap to usethe key to look up key)Gets a Collection from |
| public static < the key type K, the value type V> Bag | Returns: the Collection in theMultiValuedMap as Bag, or null if input map is nullthe map, final K MultiValuedMap to usethe key to look up key)Gets a Bag from |
| public static < the key type K, the value type V> List | Returns: the Collection in theMultiValuedMap as List, or null if input map is nullthe map, final K MultiValuedMap to usethe key to look up key)Gets a List from |
| public static < the key type K, the value type V> Set | Returns: the Collection in theMultiValuedMap as Set, or null if input map is nullthe map, final K MultiValuedMap to usethe key to look up key)Gets a Set from |
| public static boolean | Returns: true if the map is empty or nullthe map to check, may be null map)Null-safe check if the specified |
| public static < the key type K, the value type V> ListValuedMap | Returns: a newListValuedMapCreates a |
| public static < the key type K, the value type V> SetValuedMap | Returns: a newSetValuedMapCreates a |
| public static < the key type K, the value type V> MultiValuedMap | Returns: a transformedMultiValuedMap backed by the given mapthe map, final Transformer<? super K, ? extends K> MultiValuedMap to transform, must not be null, typically emptythe transformer for the map keys, null means no transformation keyTransformer, final Transformer<? super V, ? extends V> the transformer for the map values, null means no transformation valueTransformer)Returns a |
| public static < the key type K, the value type V> MultiValuedMap | Returns: an unmodifiableMultiValuedMap backed by the provided mapthe map)MultiValuedMap to decorate, must not be nullReturns an |
| EMPTY_MULTI_VALUED_MAP | back to summary |
|---|---|
| public static final MultiValuedMap<K, V> EMPTY_MULTI_VALUED_MAP An empty
| |
| MultiMapUtils | back to summary |
|---|---|
| private MultiMapUtils()
| |
| emptyIfNull | back to summary |
|---|---|
| public static <K, V> MultiValuedMap Returns an immutable empty
| |
| emptyMultiValuedMap | back to summary |
|---|---|
| public static <K, V> MultiValuedMap Returns immutable EMPTY_MULTI_VALUED_MAP with generic type safety.
| |
| getCollection | back to summary |
|---|---|
| public static <K, V> Collection Gets a Collection from
| |
| getValuesAsBag | back to summary |
|---|---|
| public static <K, V> Bag Gets a Bag from
| |
| getValuesAsList | back to summary |
|---|---|
| public static <K, V> List Gets a List from
| |
| getValuesAsSet | back to summary |
|---|---|
| public static <K, V> Set Gets a Set from
| |
| isEmpty | back to summary |
|---|---|
| public static boolean isEmpty(final MultiValuedMap<?, ?> map) Null-safe check if the specified If the provided map is null, returns true.
| |
| newListValuedHashMap | back to summary |
|---|---|
| public static <K, V> ListValuedMap Creates a
| |
| newSetValuedHashMap | back to summary |
|---|---|
| public static <K, V> SetValuedMap Creates a
| |
| transformedMultiValuedMap | back to summary |
|---|---|
| public static <K, V> MultiValuedMap Returns a
This method returns a new Each object is passed through the transformers as it is added to the Map. It is important not to use the original map after invoking this method, as it is a back door for adding untransformed objects. If there are any elements already in the map being decorated, they are NOT transformed.
| |
| unmodifiableMultiValuedMap | back to summary |
|---|---|
| public static <K, V> MultiValuedMap Returns an
| |