Class MapMapping<D,R>
- java.lang.Object
-
- net.automatalib.common.util.mapping.MapMapping<D,R>
-
- Type Parameters:
D
- domain type.R
- range type.
- All Implemented Interfaces:
Function<D,R>
,Mapping<D,R>
,MutableMapping<D,R>
public class MapMapping<D,@Nullable R> extends Object implements MutableMapping<D,R>
-
-
Constructor Summary
Constructors Constructor Description MapMapping()
Constructor.MapMapping(Map<D,@Nullable R> map)
Constructor.MapMapping(Map<D,@Nullable R> map, boolean copy)
Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <D,R>
MapMapping<D,R>create(Map<D,R> map)
Set<Map.Entry<@KeyFor("this.map") D,R>>
entrySet()
Delegates to the underlyingMap
.R
get(D elem)
Get the range objectelem
maps to.R
put(D key, @Nullable R value)
Delegates to the underlyingMap
.
-
-
-
Method Detail
-
create
public static <D,R> MapMapping<D,R> create(Map<D,R> map)
-
get
public R get(D elem)
Description copied from interface:Mapping
Get the range objectelem
maps to.
-
put
public R put(D key, @Nullable R value)
Delegates to the underlyingMap
.- Specified by:
put
in interfaceMutableMapping<D,R>
- See Also:
Map.put(Object, Object)
-
-