D
- domain type.R
- range type.public class MapMapping<D,R> extends Object implements MutableMapping<D,R>
Constructor and Description |
---|
MapMapping() |
MapMapping(Map<? super D,R> map)
Constructor.
|
MapMapping(Map<D,R> map,
boolean copy) |
Modifier and Type | Method and Description |
---|---|
static <D,R> MapMapping<D,R> |
create(Map<D,R> map) |
Set<? extends Map.Entry<? super D,R>> |
entrySet()
Delegates to the underlying
Map . |
R |
get(D elem)
Get the range object
elem maps to. |
R |
put(D key,
R value)
Delegates to the underlying
Map . |
public MapMapping(Map<D,R> map, boolean copy)
public MapMapping(Map<? super D,R> map)
map
- the underlying Map
object.public MapMapping()
public static <D,R> MapMapping<D,R> create(Map<D,R> map)
public R get(D elem)
Mapping
elem
maps to.public R put(D key, R value)
Map
.put
in interface MutableMapping<D,R>
Map.put(Object, Object)
Copyright © 2015. All Rights Reserved.