Uses of Class
org.apache.maven.api.SessionData.Key
-
Uses of SessionData.Key in org.apache.maven.api
Modifier and TypeMethodDescriptionstatic <T> SessionData.Key
<T> Create a key using the given class as an identifier and as the type of the object.static <T> SessionData.Key
<T> Create a key using the given class and id.Modifier and TypeMethodDescription<T> T
SessionData.computeIfAbsent
(SessionData.Key<T> key, Supplier<T> supplier) Retrieve of compute the data associated with the specified key.<T> T
SessionData.get
(SessionData.Key<T> key) Gets the session data associated with the specified key.<T> boolean
SessionData.replace
(SessionData.Key<T> key, T oldValue, T newValue) Associates the specified session data with the given key if the key is currently mapped to the given value.<T> void
SessionData.set
(SessionData.Key<T> key, T value) Associates the specified session data with the given key.