Uses of Class
it.tidalwave.util.Key
Packages that use Key
-
Uses of Key in it.tidalwave.util
Methods in it.tidalwave.util that return KeyModifier and TypeMethodDescriptionCreates an instance with the given name.static <T> Key
<T> Creates an instance with the given name and type.Methods in it.tidalwave.util that return types with arguments of type KeyModifier and TypeMethodDescriptionKey.allKeys()
Returns all the keys registered in the system.TypeSafeMap.asMap()
Returns the contents as a plainMap
.Map
<Key<?>, Collection<?>> TypeSafeMultiMap.asMap()
Returns the contents as a plainMap
.TypeSafeMap.entrySet()
Returns a set of all the contained (key, value) pairs.Set
<Map.Entry<Key<?>, Collection<?>>> TypeSafeMultiMap.entrySet()
Returns a set of all the contained (key, value) pairs.TypeSafeMap.keySet()
Returns a set of all the contained keys.TypeSafeMultiMap.keySet()
Returns a set of all the contained keys.Methods in it.tidalwave.util with parameters of type KeyModifier and TypeMethodDescriptionint
boolean
TypeSafeMap.containsKey
(Key<?> key) Checks whether a pair has been stored.boolean
TypeSafeMultiMap.containsKey
(Key<?> key) Checks whether a pair has been stored.<T> T
Deprecated.<T> Collection
<T> Returns a value given its key.default <T> Optional
<T> TypeSafeMap.getOptional
(Key<? extends T> key) Returns an optional value given its key.<T> Optional
<T> PreferencesHandler.getProperty
(Key<T> name) Gets a property.<T> void
PreferencesHandler.setDefaultProperty
(Key<T> name, T value) Sets a property, unless it has been already set.<T> void
PreferencesHandler.setProperty
(Key<T> name, T value) Sets a property, overriding the current value.<T> TypeSafeMap
Create a new instance with an additional pair (key, value=<T> TypeSafeMultiMap
Creates a new instance with an additional pair (key, value).Method parameters in it.tidalwave.util with type arguments of type KeyModifier and TypeMethodDescription<T> void
TypeSafeMap.forEach
(BiConsumer<? super Key<T>, ? super T> action) Performs the given action on all the pairs (key, value) contained in this map.<T> void
TypeSafeMultiMap.forEach
(BiConsumer<? super Key<T>, ? super Collection<T>> action) Performs the given action on all the pairs (key, value) contained in this map.static TypeSafeMap
Creates an instance cloning the given map.static TypeSafeMultiMap
TypeSafeMultiMap.ofCloned
(Map<? extends Key<?>, ? extends Collection<?>> map) Creates an instance cloning the given map.
TypeSafeMap.getOptional(Key)
instead