Module net.automatalib.common.util
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,V>
extends Object
implements MutableMapping<K,V>, IDChangeListener<K>
-
Constructor Details
-
ArrayMapping
public ArrayMapping() -
ArrayMapping
public ArrayMapping(int initialSize)
-
-
Method Details
-
get
Description copied from interface:MappingGet the range objectelemmaps to. Implementations may decide how to deal with unmapped values (default values, exceptions, etc.) -
put
Description copied from interface:MutableMappingUpdate the mapping by overriding the value which the given key should map to.- Specified by:
putin interfaceMutableMapping<K extends NumericID,V> - Parameters:
key- the keyvalue- the new value to be associated with the key- Returns:
- the old value mapped by
key
-
idChanged
- Specified by:
idChangedin interfaceIDChangeListener<K extends NumericID>
-