Package org.eclipse.net4j.util.lifecycle
Class LifecycleMapping<K,V>
java.lang.Object
org.eclipse.net4j.util.lifecycle.LifecycleMapping<K,V>
A canonical mapping from keys that are potentially
ILifecycle to arbitrary values.
A mapping is automatically removed if its key is just weakly reachable,
or if its key is an ILifecycle and is deactivated.- Since:
- 3.27
- Author:
- Eike Stepper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddMapping(K lifecycle, V value) getMapping(K lifecycle) getOrAddMapping(K lifecycle, Supplier<V> valueSupplier) removeMapping(K lifecycle)
-
Constructor Details
-
LifecycleMapping
public LifecycleMapping()
-
-
Method Details
-
getMapping
-
getOrAddMapping
-
addMapping
-
removeMapping
-