Top Description Classes
[default module]

Package org.apache.commons.collections4.splitmap


The "split map" concept is that of an object that implements the Put and Get interfaces, with differing generic types. This is like a pre-generics Map whose input key/value constraints are different than its output key/value constraints. While it would be possible to declare a "split map" with matching input/output key/value constraints, this would be a Map and would therefore make little sense (any Commons Collections Map implementation will also implement Put and Get with matching generic parameters).

The following decorators are provided:

Class Summary

Modifier and TypeClass and Description
public class
AbstractIterableGetMapDecorator<
the type of the keys in this map
K
,
the type of the values in this map
V
>

IterableGet that uses a Map<K, V> for the Get<K, V> implementation.

public class
TransformedSplitMap<
the type of the keys to put in this map
J
,
the type of the keys to get in this map
K
,
the type of the values to put in this map
U
,
the type of the values to get in this map
V
>

Decorates another Map to transform objects that are added.