Class UnmodifiableRegistry<K,V>
java.lang.Object
org.eclipse.net4j.util.registry.UnmodifiableRegistry<K,V>
- Type Parameters:
K- the key typeV- the value type
- All Implemented Interfaces:
Map<K,V>, IContainer<Map.Entry<K, V>>, INotifier, IRegistry<K, V>
-
Nested Class Summary
Nested classes/interfaces inherited from interface IContainer
IContainer.Modifiable<E>, IContainer.Persistable<E>, IContainer.Persistence<E>Nested classes/interfaces inherited from interface INotifier
INotifier.INotifier2 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(IListener listener) Adds a listener to this notifier.voidclear()voidcommit()voidcommit(boolean notifications) booleancontainsKey(Object key) booleancontainsValue(Object value) entrySet()booleanReturns the listeners that are registered with this notifier.inthashCode()booleanReturnstrueif one or more listeners are registered with this notifier,falseotherwise.booleanbooleanisEmpty()keySet()voidvoidremoveListener(IListener listener) Removes a listener from this notifier.voidsetAutoCommit(boolean on) intsize()values()Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
UnmodifiableRegistry
-
-
Method Details
-
addListener
Description copied from interface:INotifierAdds a listener to this notifier.Depending on the implementation duplicate listeners may lead to duplicate event delivery or not. Implementors are encouraged to prevent events from being delivered more than once to the same listener,
- Specified by:
addListenerin interfaceINotifier
-
removeListener
Description copied from interface:INotifierRemoves a listener from this notifier.- Specified by:
removeListenerin interfaceINotifier
-
getListeners
Description copied from interface:INotifierReturns the listeners that are registered with this notifier.Depending on the implementation duplicate listeners may be contained in the returned array.
- Specified by:
getListenersin interfaceINotifier- Since:
- 3.0
-
hasListeners
public boolean hasListeners()Description copied from interface:INotifierReturnstrueif one or more listeners are registered with this notifier,falseotherwise.- Specified by:
hasListenersin interfaceINotifier- Since:
- 3.0
-
put
-
putAll
-
remove
-
clear
-
commit
-
commit
-
setAutoCommit
public void setAutoCommit(boolean on) - Specified by:
setAutoCommitin interfaceIRegistry<K,V>
-
isAutoCommit
public boolean isAutoCommit()- Specified by:
isAutoCommitin interfaceIRegistry<K,V>
-
isEmpty
-
size
-
getElements
- Specified by:
getElementsin interfaceIContainer<K>
-
get
-
containsKey
- Specified by:
containsKeyin interfaceMap<K,V>
-
containsValue
- Specified by:
containsValuein interfaceMap<K,V>
-
entrySet
-
keySet
-
values
-
equals
-
hashCode
-