public class LimitedHashMapAbstractState<KeyT,AbstractSpaceT extends LatticeAbstractState<AbstractSpaceT>> extends LimitedHashMap<KeyT,AbstractSpaceT> implements MapAbstractState<KeyT,AbstractSpaceT>
LimitedHashMapAbstractState represents a limited map to LatticeAbstractStates with the semilattice operators lifted to the map.removeElement| Constructor and Description |
|---|
LimitedHashMapAbstractState(int initialCapacity,
TriFunction<LimitedHashMap<KeyT,AbstractSpaceT>,KeyT,AbstractSpaceT,java.util.Optional<KeyT>> removeElement)
Create an empty limited hash map abstract state with reserved initial capacity.
|
LimitedHashMapAbstractState(java.util.Map<? extends KeyT,? extends AbstractSpaceT> m,
TriFunction<LimitedHashMap<KeyT,AbstractSpaceT>,KeyT,AbstractSpaceT,java.util.Optional<KeyT>> removeElement)
Create a hash map abstract state from another map.
|
LimitedHashMapAbstractState(TriFunction<LimitedHashMap<KeyT,AbstractSpaceT>,KeyT,AbstractSpaceT,java.util.Optional<KeyT>> removeElement)
Create an empty limited hash map abstract state.
|
| Modifier and Type | Method and Description |
|---|---|
LimitedHashMapAbstractState<KeyT,AbstractSpaceT> |
copy()
Creates a copy of itself.
|
compute, computeIfAbsent, merge, put, putAll, putIfAbsentclear, clone, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, remove, remove, replace, replace, replaceAll, size, valuesfinalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisLessOrEqual, joinclear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesisLessequals, getPrecision, getStateByName, hashCodepublic LimitedHashMapAbstractState(TriFunction<LimitedHashMap<KeyT,AbstractSpaceT>,KeyT,AbstractSpaceT,java.util.Optional<KeyT>> removeElement)
removeElement - determines whether the map limit is reached
if it returns an empty value, the map behaves as usual
otherwise, the returned key is removed from the mappublic LimitedHashMapAbstractState(int initialCapacity,
TriFunction<LimitedHashMap<KeyT,AbstractSpaceT>,KeyT,AbstractSpaceT,java.util.Optional<KeyT>> removeElement)
initialCapacity - the initial capacity of the hash tableremoveElement - determines whether the map limit is reached
if it returns an empty value, the map behaves as usual
otherwise, the returned key is removed from the mappublic LimitedHashMapAbstractState(java.util.Map<? extends KeyT,? extends AbstractSpaceT> m, TriFunction<LimitedHashMap<KeyT,AbstractSpaceT>,KeyT,AbstractSpaceT,java.util.Optional<KeyT>> removeElement)
m - map which elements are used for initializationremoveElement - determines whether the map limit is reached
if it returns an empty value, the map behaves as usual
otherwise, the returned key is removed from the mappublic LimitedHashMapAbstractState<KeyT,AbstractSpaceT> copy()
AbstractStatecopy in interface MapAbstractState<KeyT,AbstractSpaceT extends LatticeAbstractState<AbstractSpaceT>>copy in interface AbstractState