Package org.eclipse.net4j.util.lifecycle
Klasse 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
.- Seit:
- 3.27
- Autor:
- Eike Stepper
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungboolean
addMapping
(K lifecycle, V value) getMapping
(K lifecycle) getOrAddMapping
(K lifecycle, Supplier<V> valueSupplier) removeMapping
(K lifecycle)
-
Konstruktordetails
-
LifecycleMapping
public LifecycleMapping()
-
-
Methodendetails
-
getMapping
-
getOrAddMapping
-
addMapping
-
removeMapping
-