Class HashMapRegistry<K,V>
java.lang.Object
org.eclipse.net4j.util.event.Notifier
org.eclipse.net4j.util.lifecycle.Lifecycle
org.eclipse.net4j.util.lifecycle.ShareableLifecycle
org.eclipse.net4j.util.container.Container<Map.Entry<K,V>>
org.eclipse.net4j.util.registry.Registry<K,V>
org.eclipse.net4j.util.registry.HashMapRegistry<K,V>
- Type Parameters:
K- the key typeV- the value type
- All Implemented Interfaces:
Map<K,V>, IContainer<Map.Entry<K, V>>, INotifier, INotifier.INotifier2, IDeactivateable, ILifecycle, ILifecycle.DeferrableActivation, IRegistry<K, V>
- Direct Known Subclasses:
HashMapRegistry.AutoCommit
A registry backed by a hash map.
- Author:
- Eike Stepper
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA hash-map registry that commits changes immediately.Nested classes/interfaces inherited from class Registry
Registry.TransactionNested classes/interfaces inherited from class Notifier
Notifier.CancelationNested classes/interfaces inherited from interface IContainer
IContainer.Modifiable<E>, IContainer.Persistable<E>, IContainer.Persistence<E>Nested classes/interfaces inherited from interface ILifecycle
ILifecycle.DeferrableActivationNested classes/interfaces inherited from interface INotifier
INotifier.INotifier2 -
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionHashMapRegistry(int initialCapacity) HashMapRegistry(int initialCapacity, float loadFactor) HashMapRegistry(Map<? extends K, ? extends V> m) -
Method Summary
Methods inherited from class Registry
autoCommit, clear, commit, commit, containsKey, containsValue, deregister, entrySet, get, getElements, getTransaction, isAutoCommit, isEmpty, keySet, put, putAll, register, remove, setAutoCommit, size, toString, valuesMethods inherited from class Container
fireContainerEvent, fireContainerEvent, fireContainerEvent, fireElementAddedEvent, fireElementRemovedEvent, fireElementsAddedEvent, fireElementsRemovedEvent, fireEvent, newContainerEvent, newContainerEventMethods inherited from class Lifecycle
activate, checkActive, checkArg, checkArg, checkInactive, checkNull, checkState, checkState, deactivate, deferredActivate, doActivate, doAfterActivate, doBeforeActivate, doBeforeDeactivate, doCancelActivation, doDeactivate, dump, getLifecycleState, isActive, isDeferredActivationMethods inherited from class Notifier
addListener, addUniqueListener, fireEvent, fireEvent, fireThrowable, firstListenerAdded, getListeners, getNotificationService, hasListener, hasListeners, lastListenerRemoved, listenerAdded, listenerRemoved, removeListenerMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface INotifier
addListener, getListeners, hasListeners, removeListenerMethods inherited from interface Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
HashMapRegistry
public HashMapRegistry() -
HashMapRegistry
public HashMapRegistry(int initialCapacity) -
HashMapRegistry
public HashMapRegistry(int initialCapacity, float loadFactor) -
HashMapRegistry
-
-
Method Details
-
getMap
-