E - The element type of the ObservableMultiset.public class UnmodifiableObservableMultisetWrapper<E> extends java.lang.Object implements ObservableMultiset<E>
ObservableSetMultimap, wrapping an
ObservableMultiset.| Constructor and Description |
|---|
UnmodifiableObservableMultisetWrapper(ObservableMultiset<E> observableMultiset)
Creates a new
UnmodifiableObservableSetMultimapWrapper for the
given ObservableMultiset. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(E element) |
int |
add(E element,
int occurrences) |
boolean |
addAll(java.util.Collection<? extends E> c) |
void |
addListener(javafx.beans.InvalidationListener listener) |
void |
addListener(MultisetChangeListener<? super E> listener)
Adds a
MultisetChangeListener to this ObservableMultiset. |
void |
clear() |
boolean |
contains(java.lang.Object element) |
boolean |
containsAll(java.util.Collection<?> elements) |
int |
count(java.lang.Object element) |
java.util.Set<E> |
elementSet() |
java.util.Set<com.google.common.collect.Multiset.Entry<E>> |
entrySet() |
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
boolean |
isEmpty() |
java.util.Iterator<E> |
iterator() |
boolean |
remove(java.lang.Object element) |
int |
remove(java.lang.Object element,
int occurrences) |
boolean |
removeAll(java.util.Collection<?> c) |
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<?> c) |
int |
setCount(E element,
int count) |
boolean |
setCount(E element,
int oldCount,
int newCount) |
int |
size() |
java.lang.Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
public UnmodifiableObservableMultisetWrapper(ObservableMultiset<E> observableMultiset)
UnmodifiableObservableSetMultimapWrapper for the
given ObservableMultiset.observableMultiset - The ObservableMultiset to wrap.public boolean add(E element)
public int add(E element, int occurrences)
add in interface com.google.common.collect.Multiset<E>public boolean addAll(java.util.Collection<? extends E> c)
addAll in interface java.util.Collection<E>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()
clear in interface java.util.Collection<E>public boolean contains(java.lang.Object element)
public boolean containsAll(java.util.Collection<?> elements)
public int count(java.lang.Object element)
count in interface com.google.common.collect.Multiset<E>public java.util.Set<E> elementSet()
elementSet in interface com.google.common.collect.Multiset<E>public java.util.Set<com.google.common.collect.Multiset.Entry<E>> entrySet()
entrySet in interface com.google.common.collect.Multiset<E>public boolean equals(java.lang.Object obj)
public int hashCode()
public boolean isEmpty()
isEmpty in interface java.util.Collection<E>public java.util.Iterator<E> iterator()
public boolean remove(java.lang.Object element)
public int remove(java.lang.Object element,
int occurrences)
remove in interface com.google.common.collect.Multiset<E>public boolean removeAll(java.util.Collection<?> c)
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<?> c)
public int setCount(E element, int count)
setCount in interface com.google.common.collect.Multiset<E>public boolean setCount(E element, int oldCount, int newCount)
setCount in interface com.google.common.collect.Multiset<E>public int size()
size in interface java.util.Collection<E>public java.lang.Object[] toArray()
toArray in interface java.util.Collection<E>public <T> T[] toArray(T[] a)
toArray in interface java.util.Collection<E>Copyright (c) 2014 itemis AG and others. All rights reserved.