public class InMemoryRegistryStore<E> extends Object implements RegistryStore<E>
| Constructor and Description |
|---|
InMemoryRegistryStore() |
| Modifier and Type | Method and Description |
|---|---|
E |
computeIfAbsent(String key,
Function<? super String,? extends E> mappingFunction) |
boolean |
exists(String name) |
Optional<E> |
find(String key) |
E |
putIfAbsent(String key,
E value) |
Optional<E> |
remove(String name) |
Optional<E> |
replace(String name,
E newEntry) |
Collection<E> |
values() |
public E computeIfAbsent(String key, Function<? super String,? extends E> mappingFunction)
computeIfAbsent in interface RegistryStore<E>public E putIfAbsent(String key, E value)
putIfAbsent in interface RegistryStore<E>public Optional<E> replace(String name, E newEntry)
replace in interface RegistryStore<E>public boolean exists(String name)
exists in interface RegistryStore<E>public Collection<E> values()
values in interface RegistryStore<E>Copyright © 2022. All rights reserved.