Package org.eclipse.net4j.util.registry
Class UnmodifiableRegistry<K,V>
java.lang.Object
org.eclipse.net4j.util.registry.UnmodifiableRegistry<K,V>
- All Implemented Interfaces:
Map<K,,V> IContainer<Map.Entry<K,,V>> INotifier,IRegistry<K,V>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.net4j.util.container.IContainer
IContainer.Modifiable<E>, IContainer.Persistable<E>, IContainer.Persistence<E>Nested classes/interfaces inherited from interface org.eclipse.net4j.util.event.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 java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.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
public void clear() -
commit
public void commit() -
commit
public void commit(boolean notifications) -
setAutoCommit
public void setAutoCommit(boolean on) - Specified by:
setAutoCommitin interfaceIRegistry<K,V>
-
isAutoCommit
public boolean isAutoCommit()- Specified by:
isAutoCommitin interfaceIRegistry<K,V>
-
isEmpty
public boolean isEmpty() -
size
public int 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
public int hashCode()
-