Package org.apache.commons.collections4.splitmap
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:
- Transformed - transforms each element added
-
ClassDescriptionTransformedSplitMap<J,
K, U, V> Decorates anotherMap
to transform objects that are added.