public class UnmodifiableRegistry<K,V> extends java.lang.Object implements IRegistry<K,V>
IContainer.Modifiable<E>, IContainer.Persistable<E>, IContainer.Persistence<E>| Constructor and Description |
|---|
UnmodifiableRegistry(IRegistry<K,V> delegate) |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(IListener listener)
Adds a listener to this notifier.
|
void |
clear() |
void |
commit() |
void |
commit(boolean notifications) |
boolean |
containsKey(java.lang.Object key) |
boolean |
containsValue(java.lang.Object value) |
java.util.Set<java.util.Map.Entry<K,V>> |
entrySet() |
boolean |
equals(java.lang.Object o) |
V |
get(java.lang.Object key) |
java.util.Map.Entry<K,V>[] |
getElements() |
IListener[] |
getListeners()
Returns the listeners that are registered with this notifier.
|
int |
hashCode() |
boolean |
hasListeners()
Returns
true if one or more listeners are registered with this notifier, false otherwise. |
boolean |
isAutoCommit() |
boolean |
isEmpty() |
java.util.Set<K> |
keySet() |
V |
put(K key,
V value) |
void |
putAll(java.util.Map<? extends K,? extends V> t) |
V |
remove(java.lang.Object key) |
void |
removeListener(IListener listener)
Removes a listener from this notifier.
|
void |
setAutoCommit(boolean on) |
int |
size() |
java.util.Collection<V> |
values() |
public void addListener(IListener listener)
INotifierDepending 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,
addListener in interface INotifierpublic void removeListener(IListener listener)
INotifierremoveListener in interface INotifierpublic IListener[] getListeners()
INotifierDepending on the implementation duplicate listeners may be contained in the returned array.
getListeners in interface INotifierpublic boolean hasListeners()
INotifiertrue if one or more listeners are registered with this notifier, false otherwise.hasListeners in interface INotifierpublic void setAutoCommit(boolean on)
setAutoCommit in interface IRegistry<K,V>public boolean isAutoCommit()
isAutoCommit in interface IRegistry<K,V>public boolean isEmpty()
public java.util.Map.Entry<K,V>[] getElements()
getElements in interface IContainer<java.util.Map.Entry<K,V>>public boolean containsKey(java.lang.Object key)
public boolean containsValue(java.lang.Object value)
public boolean equals(java.lang.Object o)
Copyright (c) 2004-2019 Eike Stepper (Loehne, Germany) and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html