E - The element type of the Multiset.public class ObservableMultisetWrapper<E> extends com.google.common.collect.ForwardingMultiset<E> implements ObservableMultiset<E>
| Constructor and Description |
|---|
ObservableMultisetWrapper(com.google.common.collect.Multiset<E> setMultimap)
Creates a new
ObservableMultiset wrapping the given
Multiset. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(E element) |
int |
add(E element,
int occurrences) |
boolean |
addAll(java.util.Collection<? extends E> collection) |
void |
addListener(javafx.beans.InvalidationListener listener) |
void |
addListener(MultisetChangeListener<? super E> listener)
Adds a
MultisetChangeListener to this ObservableMultiset. |
void |
clear() |
protected com.google.common.collect.Multiset<E> |
delegate() |
protected com.google.common.collect.Multiset<E> |
delegateCopy()
Returns a copy of the delegate
Multiset, which is used for change
notifications. |
boolean |
remove(java.lang.Object object) |
int |
remove(java.lang.Object element,
int occurrences) |
boolean |
removeAll(java.util.Collection<?> collection) |
void |
removeListener(javafx.beans.InvalidationListener listener) |
void |
removeListener(MultisetChangeListener<? super E> listener)
Removes a
MultisetChangeListener from this
ObservableMultiset. |
boolean |
replaceAll(com.google.common.collect.Multiset<? extends E> multiset)
Replaces all the contents of the
ObservableMultiset with the
contents provided by the given Multiset. |
boolean |
retainAll(java.util.Collection<?> collection) |
int |
setCount(E element,
int count) |
boolean |
setCount(E element,
int oldCount,
int newCount) |
count, elementSet, entrySet, equals, hashCode, standardAdd, standardAddAll, standardClear, standardContains, standardCount, standardEquals, standardHashCode, standardIterator, standardRemove, standardRemoveAll, standardRetainAll, standardSetCount, standardSetCount, standardSize, standardToStringcontains, containsAll, isEmpty, iterator, size, standardContainsAll, standardIsEmpty, standardToArray, standardToArray, toArray, toArrayclone, finalize, getClass, notify, notifyAll, wait, wait, waitcontains, containsAll, count, elementSet, entrySet, equals, hashCode, iterator, toStringpublic ObservableMultisetWrapper(com.google.common.collect.Multiset<E> setMultimap)
ObservableMultiset wrapping the given
Multiset.setMultimap - The Multiset to wrap into the newly created
ObservableMultisetWrapper.public boolean add(E element)
public int add(E element, int occurrences)
public boolean addAll(java.util.Collection<? extends E> collection)
public void addListener(javafx.beans.InvalidationListener listener)
addListener in interface javafx.beans.Observablepublic void addListener(MultisetChangeListener<? super E> listener)
ObservableMultisetMultisetChangeListener to this ObservableMultiset.
If the same listener is registered more than once, it will be notified
more than once.addListener in interface ObservableMultiset<E>listener - The MultisetChangeListener to add.public void clear()
protected com.google.common.collect.Multiset<E> delegate()
delegate in class com.google.common.collect.ForwardingMultiset<E>protected com.google.common.collect.Multiset<E> delegateCopy()
Multiset, which is used for change
notifications.Multiset.public boolean remove(java.lang.Object object)
public int remove(java.lang.Object element,
int occurrences)
public boolean removeAll(java.util.Collection<?> collection)
public void removeListener(javafx.beans.InvalidationListener listener)
removeListener in interface javafx.beans.Observablepublic void removeListener(MultisetChangeListener<? super E> listener)
ObservableMultisetMultisetChangeListener from this
ObservableMultiset. Will do nothing if the listener was not
attached to this ObservableMultiset. If it was added more than
once, then only the first occurrence will be removed.removeListener in interface ObservableMultiset<E>listener - The MultisetChangeListener to remove.public boolean replaceAll(com.google.common.collect.Multiset<? extends E> multiset)
ObservableMultisetObservableMultiset with the
contents provided by the given Multiset.replaceAll in interface ObservableMultiset<E>multiset - The Multiset whose values should be used to replace
those of this ObservableMultiset.public boolean retainAll(java.util.Collection<?> collection)
public int setCount(E element, int count)
Copyright (c) 2014 itemis AG and others. All rights reserved.