E - The element type of the ObservableMultiset.public abstract class MultisetExpression<E> extends java.lang.Object implements ObservableMultisetValue<E>
SetMultimapExpression is a ObservableMultisetValue plus
additional convenience methods to generate bindings.
This class provides identical functionality for Multiset as
MapExpression for Map, SetExpression for Set,
or ListExpression for List.
| Type | Property and Description |
|---|---|
abstract javafx.beans.property.ReadOnlyBooleanProperty |
empty
A boolean property that reflects whether the
Multiset is empty. |
abstract javafx.beans.property.ReadOnlyIntegerProperty |
size
An integer property that represents the size of the
Multiset. |
Multiset.Entry<E>| Constructor and Description |
|---|
MultisetExpression() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(E element) |
int |
add(E element,
int occurrences) |
boolean |
addAll(java.util.Collection<? extends E> c) |
javafx.beans.binding.StringBinding |
asString()
|
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() |
abstract javafx.beans.property.ReadOnlyBooleanProperty |
emptyProperty()
A boolean property that reflects whether the
Multiset is empty. |
java.util.Set<Multiset.Entry<E>> |
entrySet() |
ObservableMultiset<E> |
getValue() |
boolean |
isEmpty()
Gets the value of the property empty.
|
javafx.beans.binding.BooleanBinding |
isEqualTo(ObservableMultiset<?> other)
Creates a new
BooleanBinding that indicates whether this
ObservableMultiset is equal to the passed in
ObservableMultiset. |
javafx.beans.binding.BooleanBinding |
isNotEqualTo(ObservableMultiset<?> other)
Creates a new
BooleanBinding that indicates whether this
ObservableMultiset is not equal to the passed in
ObservableMultiset. |
javafx.beans.binding.BooleanBinding |
isNotNull()
|
javafx.beans.binding.BooleanBinding |
isNull()
|
java.util.Iterator<E> |
iterator() |
static <E> MultisetExpression<E> |
multisetExpression(ObservableMultisetValue<E> multisetValue)
Returns a
MultisetExpression that wraps an
ObservableMultisetValue. |
boolean |
remove(java.lang.Object element) |
int |
remove(java.lang.Object element,
int occurrences) |
boolean |
removeAll(java.util.Collection<?> c) |
boolean |
replaceAll(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() |
abstract javafx.beans.property.ReadOnlyIntegerProperty |
sizeProperty()
An integer property that represents the size of the
Multiset. |
java.lang.Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddListener, removeListenerequals, forEach, forEachEntry, hashCode, spliterator, toStringpublic abstract javafx.beans.property.ReadOnlyBooleanProperty emptyProperty
Multiset is empty.isEmpty()public abstract javafx.beans.property.ReadOnlyIntegerProperty sizeProperty
Multiset.public static <E> MultisetExpression<E> multisetExpression(ObservableMultisetValue<E> multisetValue)
MultisetExpression that wraps an
ObservableMultisetValue. If the ObservableMultisetValue
is already a MultisetExpression, it will be returned. Otherwise a
new concrete MultisetBinding is created that is bound to the
ObservableMultisetValue.E - The element type of the MultisetExpression.multisetValue - The ObservableMultisetValue for which to return a
MultisetExpression.ObservableMultisetValue if its already a
MultisetExpression, or a newly created
MultisetBinding for it.public boolean add(E element)
public boolean addAll(java.util.Collection<? extends E> c)
addAll in interface java.util.Collection<E>public javafx.beans.binding.StringBinding asString()
StringBinding that holds the value of the
MultisetExpression turned into a String. If the value of
this SetMultimapExpression changes, the value of the
StringBinding will be updated automatically.StringBinding.public void clear()
clear in interface java.util.Collection<E>public boolean contains(java.lang.Object element)
public boolean containsAll(java.util.Collection<?> elements)
containsAll in interface Multiset<E>containsAll in interface java.util.Collection<E>public java.util.Set<E> elementSet()
elementSet in interface Multiset<E>public abstract javafx.beans.property.ReadOnlyBooleanProperty emptyProperty()
Multiset is empty.isEmpty()public java.util.Set<Multiset.Entry<E>> entrySet()
public ObservableMultiset<E> getValue()
getValue in interface javafx.beans.value.ObservableValue<ObservableMultiset<E>>public boolean isEmpty()
public javafx.beans.binding.BooleanBinding isEqualTo(ObservableMultiset<?> other)
BooleanBinding that indicates whether this
ObservableMultiset is equal to the passed in
ObservableMultiset.other - The ObservableMultiset to compare this
ObservableMultiset to.BooleanBinding.public javafx.beans.binding.BooleanBinding isNotEqualTo(ObservableMultiset<?> other)
BooleanBinding that indicates whether this
ObservableMultiset is not equal to the passed in
ObservableMultiset.other - The ObservableMultiset to compare this
ObservableMultiset to.BooleanBinding.public javafx.beans.binding.BooleanBinding isNotNull()
BooleanBinding.public javafx.beans.binding.BooleanBinding isNull()
BooleanBinding.public java.util.Iterator<E> iterator()
public boolean remove(java.lang.Object element)
public int remove(java.lang.Object element,
int occurrences)
public boolean removeAll(java.util.Collection<?> c)
public boolean replaceAll(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 boolean setCount(E element, int oldCount, int newCount)
public int size()
public abstract javafx.beans.property.ReadOnlyIntegerProperty sizeProperty()
Multiset.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.