Class ArrayMapping<K extends NumericID,V>
- java.lang.Object
-
- net.automatalib.common.util.mapping.ArrayMapping<K,V>
-
- All Implemented Interfaces:
Function<K,V>,Mapping<K,V>,MutableMapping<K,V>,IDChangeListener<K>
public final class ArrayMapping<K extends NumericID,@Nullable V> extends Object implements MutableMapping<K,V>, IDChangeListener<K>
-
-
Constructor Summary
Constructors Constructor Description ArrayMapping()ArrayMapping(int initialSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Vget(K elem)Get the range objectelemmaps to.voididChanged(K obj, int newId, int oldId)Vput(K key, @Nullable V value)
-
-
-
Method Detail
-
get
public V get(K elem)
Description copied from interface:MappingGet the range objectelemmaps to.
-
put
public V put(K key, @Nullable V value)
- Specified by:
putin interfaceMutableMapping<K extends NumericID,V>
-
idChanged
public void idChanged(K obj, int newId, int oldId)
- Specified by:
idChangedin interfaceIDChangeListener<K extends NumericID>
-
-