Uses of Class
it.tidalwave.util.Key
-
Packages that use Key Package Description it.tidalwave.util -
-
Uses of Key in it.tidalwave.util
Fields in it.tidalwave.util declared as Key Modifier and Type Field Description static Key<java.lang.Boolean>
PreferencesHandler. KEY_FULL_SCREEN
Whether the application should start at full screen.static Key<java.lang.Double>
PreferencesHandler. KEY_INITIAL_SIZE
A property representing the initial main window size as a percentual of the screen size.Methods in it.tidalwave.util that return Key Modifier and Type Method Description static Key<java.lang.Object>
Key. of(java.lang.String name)
Creates an instance with the given name.static <T> Key<T>
Key. of(java.lang.String name, java.lang.Class<T> type)
Creates an instance with the given name and type.Methods in it.tidalwave.util that return types with arguments of type Key Modifier and Type Method Description static java.util.Set<Key<?>>
Key. allKeys()
Returns all the keys registered in the system.java.util.Map<Key<?>,java.lang.Object>
TypeSafeMap. asMap()
Returns the contents as a plainMap
.java.util.Map<Key<?>,java.util.Collection<?>>
TypeSafeMultiMap. asMap()
Returns the contents as a plainMap
.java.util.Set<java.util.Map.Entry<Key<?>,java.lang.Object>>
TypeSafeMap. entrySet()
Returns a set of all the contained (key, value) pairs.java.util.Set<java.util.Map.Entry<Key<?>,java.util.Collection<?>>>
TypeSafeMultiMap. entrySet()
Returns a set of all the contained (key, value) pairs.java.util.Set<Key<?>>
TypeSafeMap. keySet()
Returns a set of all the contained keys.java.util.Set<Key<?>>
TypeSafeMultiMap. keySet()
Returns a set of all the contained keys.Methods in it.tidalwave.util with parameters of type Key Modifier and Type Method Description int
Key. compareTo(Key<?> other)
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
TypeSafeMap. get(Key<T> key)
Deprecated.UseTypeSafeMap.getOptional(Key)
instead<T> java.util.Collection<T>
TypeSafeMultiMap. get(Key<T> key)
Returns a value given its key.default <T> java.util.Optional<T>
TypeSafeMap. getOptional(Key<? extends T> key)
Returns an optional value given its key.<T> java.util.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
TypeSafeMap. with(Key<T> key, T value)
Create a new instance with an additional pair (key, value=<T> TypeSafeMultiMap
TypeSafeMultiMap. with(Key<T> key, T value)
Creates a new instance with an additional pair (key, value).Method parameters in it.tidalwave.util with type arguments of type Key Modifier and Type Method Description void
TypeSafeMap. forEach(java.util.function.BiConsumer<? super Key<?>,? super java.lang.Object> action)
Performs the given action on all the pairs (key, value) contained in this map.void
TypeSafeMultiMap. forEach(java.util.function.BiConsumer<? super Key<?>,? super java.util.Collection<?>> action)
Performs the given action on all the pairs (key, value) contained in this map.static TypeSafeMap
TypeSafeMap. ofCloned(java.util.Map<? extends Key<?>,java.lang.Object> map)
Creates an instance cloning the given map.static TypeSafeMultiMap
TypeSafeMultiMap. ofCloned(java.util.Map<? extends Key<?>,? extends java.util.Collection<?>> map)
Creates an instance cloning the given map.
-