Package org.apache.commons.collections4.splitmap
package org.apache.commons.collections4.splitmap
Implements the "split map" concept. A split map is 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 from 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
-
ClassesClassDescriptionTransformedSplitMap<J,
K, U, V> Decorates anotherMapto transform objects that are added.