Uses of Class
it.tidalwave.util.Key
-
Packages that use Key Package Description it.tidalwave.util -
-
Uses of Key in it.tidalwave.util
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.default java.util.Set<Key<?>>
TypeSafeMap. getKeys()
Deprecated.UseTypeSafeMap.keySet()
instead.default java.util.Set<Key<?>>
TypeSafeMultiMap. getKeys()
Deprecated.UseTypeSafeMultiMap.keySet()
instead.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> 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.
-