Package org.eclipse.net4j.util.registry
Class UnmodifiableRegistry<K,V>
- java.lang.Object
- 
- org.eclipse.net4j.util.registry.UnmodifiableRegistry<K,V>
 
- 
- All Implemented Interfaces:
- java.util.Map<K,V>,- IContainer<java.util.Map.Entry<K,V>>,- INotifier,- IRegistry<K,V>
 
 public class UnmodifiableRegistry<K,V> extends java.lang.Object implements IRegistry<K,V> 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface org.eclipse.net4j.util.container.IContainerIContainer.Modifiable<E>, IContainer.Persistable<E>, IContainer.Persistence<E>
 - 
Nested classes/interfaces inherited from interface org.eclipse.net4j.util.event.INotifierINotifier.INotifier2
 
- 
 - 
Constructor SummaryConstructors Constructor Description UnmodifiableRegistry(IRegistry<K,V> delegate)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddListener(IListener listener)Adds a listener to this notifier.voidclear()voidcommit()voidcommit(boolean notifications)booleancontainsKey(java.lang.Object key)booleancontainsValue(java.lang.Object value)java.util.Set<java.util.Map.Entry<K,V>>entrySet()booleanequals(java.lang.Object o)Vget(java.lang.Object key)java.util.Map.Entry<K,V>[]getElements()IListener[]getListeners()Returns the listeners that are registered with this notifier.inthashCode()booleanhasListeners()Returnstrueif one or more listeners are registered with this notifier,falseotherwise.booleanisAutoCommit()booleanisEmpty()java.util.Set<K>keySet()Vput(K key, V value)voidputAll(java.util.Map<? extends K,? extends V> t)Vremove(java.lang.Object key)voidremoveListener(IListener listener)Removes a listener from this notifier.voidsetAutoCommit(boolean on)intsize()java.util.Collection<V>values()
 
- 
- 
- 
Method Detail- 
addListenerpublic void addListener(IListener listener) 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 interface- INotifier
 
 - 
removeListenerpublic void removeListener(IListener listener) Description copied from interface:INotifierRemoves a listener from this notifier.- Specified by:
- removeListenerin interface- INotifier
 
 - 
getListenerspublic IListener[] 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 interface- INotifier
- Since:
- 3.0
 
 - 
hasListenerspublic boolean hasListeners() Description copied from interface:INotifierReturnstrueif one or more listeners are registered with this notifier,falseotherwise.- Specified by:
- hasListenersin interface- INotifier
- Since:
- 3.0
 
 - 
setAutoCommitpublic void setAutoCommit(boolean on) - Specified by:
- setAutoCommitin interface- IRegistry<K,V>
 
 - 
isAutoCommitpublic boolean isAutoCommit() - Specified by:
- isAutoCommitin interface- IRegistry<K,V>
 
 - 
isEmptypublic boolean isEmpty() - Specified by:
- isEmptyin interface- IContainer<K>
- Specified by:
- isEmptyin interface- java.util.Map<K,V>
 
 - 
getElementspublic java.util.Map.Entry<K,V>[] getElements() - Specified by:
- getElementsin interface- IContainer<K>
 
 - 
containsKeypublic boolean containsKey(java.lang.Object key) 
 - 
containsValuepublic boolean containsValue(java.lang.Object value) 
 - 
valuespublic java.util.Collection<V> values() 
 - 
equalspublic boolean equals(java.lang.Object o) 
 
- 
 
-