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(Object key) |
boolean |
containsValue(Object value) |
Set<Map.Entry<K,V>> |
entrySet() |
boolean |
equals(Object o) |
V |
get(Object key) |
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() |
Set<K> |
keySet() |
V |
put(K key,
V value) |
void |
putAll(Map<? extends K,? extends V> t) |
V |
remove(Object key) |
void |
removeListener(IListener listener)
Removes a listener from this notifier.
|
void |
setAutoCommit(boolean on) |
int |
size() |
Collection<V> |
values() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public void addListener(IListener listener)
INotifier
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,
addListener
in interface INotifier
public void removeListener(IListener listener)
INotifier
removeListener
in interface INotifier
public IListener[] getListeners()
INotifier
Depending on the implementation duplicate listeners may be contained in the returned array.
getListeners
in interface INotifier
public boolean hasListeners()
INotifier
true
if one or more listeners are registered with this notifier, false
otherwise.hasListeners
in interface INotifier
public void setAutoCommit(boolean on)
setAutoCommit
in interface IRegistry<K,V>
public boolean isAutoCommit()
isAutoCommit
in interface IRegistry<K,V>
public boolean isEmpty()
public Map.Entry<K,V>[] getElements()
getElements
in interface IContainer<Map.Entry<K,V>>
public boolean containsKey(Object key)
containsKey
in interface Map<K,V>
public boolean containsValue(Object value)
containsValue
in interface Map<K,V>
public boolean equals(Object o)
Copyright (c) 2014 Eike Stepper (Berlin, 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