K
- The key type of the ObservableSetMultimap
.V
- The value type of the ObservableSetMultimap
.public abstract class SetMultimapExpression<K,V> extends java.lang.Object implements ObservableSetMultimapValue<K,V>
SetMultimapExpression
is a ObservableSetMultimapValue
plus
additional convenience methods to generate bindings.
This class provides identical functionality for SetMultimap
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
SetMultimap is
empty. |
abstract javafx.beans.property.ReadOnlyIntegerProperty |
size
An integer property that represents the size of the
SetMultimap . |
Constructor and Description |
---|
SetMultimapExpression() |
Modifier and Type | Method and Description |
---|---|
java.util.Map<K,java.util.Collection<V>> |
asMap() |
javafx.beans.binding.StringBinding |
asString()
|
void |
clear() |
boolean |
containsEntry(java.lang.Object key,
java.lang.Object value) |
boolean |
containsKey(java.lang.Object key) |
boolean |
containsValue(java.lang.Object value) |
abstract javafx.beans.property.ReadOnlyBooleanProperty |
emptyProperty()
A boolean property that reflects whether the
SetMultimap is
empty. |
java.util.Set<java.util.Map.Entry<K,V>> |
entries() |
java.util.Set<V> |
get(K key) |
ObservableSetMultimap<K,V> |
getValue() |
boolean |
isEmpty()
Gets the value of the property empty.
|
javafx.beans.binding.BooleanBinding |
isEqualTo(ObservableSetMultimap<?,?> other)
Creates a new
BooleanBinding that indicates whether this
ObservableSetMultimap is equal to the passed in
ObservableSetMultimap . |
javafx.beans.binding.BooleanBinding |
isNotEqualTo(ObservableSetMultimap<?,?> other)
Creates a new
BooleanBinding that indicates whether this
ObservableSetMultimap is not equal to the passed in
ObservableSetMultimap . |
javafx.beans.binding.BooleanBinding |
isNotNull()
|
javafx.beans.binding.BooleanBinding |
isNull()
|
com.google.common.collect.Multiset<K> |
keys() |
java.util.Set<K> |
keySet() |
boolean |
put(K key,
V value) |
boolean |
putAll(K key,
java.lang.Iterable<? extends V> values) |
boolean |
putAll(com.google.common.collect.Multimap<? extends K,? extends V> multimap) |
boolean |
remove(java.lang.Object key,
java.lang.Object value) |
java.util.Set<V> |
removeAll(java.lang.Object key) |
boolean |
replaceAll(com.google.common.collect.SetMultimap<? extends K,? extends V> setMultimap)
Replaces all the contents of the
ObservableSetMultimap with the
contents provided by the given SetMultimap . |
java.util.Set<V> |
replaceValues(K key,
java.lang.Iterable<? extends V> values) |
static <K,V> SetMultimapExpression<K,V> |
setMultimapExpression(ObservableSetMultimapValue<K,V> setMultimapValue)
Returns a
SetMultimapExpression that wraps an
ObservableSetMultimapValue . |
int |
size() |
abstract javafx.beans.property.ReadOnlyIntegerProperty |
sizeProperty()
An integer property that represents the size of the
SetMultimap . |
java.util.Collection<V> |
values() |
javafx.beans.binding.SetBinding<V> |
valuesAt(K key)
Creates a new
ObjectBinding that contains the values that are
mapped to the specified key. |
javafx.beans.binding.SetBinding<V> |
valuesAt(javafx.beans.value.ObservableValue<K> key)
Creates a new
ObjectBinding that contains the values that are
mapped to the specified key. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addListener, removeListener
public abstract javafx.beans.property.ReadOnlyBooleanProperty emptyProperty
SetMultimap
is
empty.isEmpty()
public abstract javafx.beans.property.ReadOnlyIntegerProperty sizeProperty
SetMultimap
.public static <K,V> SetMultimapExpression<K,V> setMultimapExpression(ObservableSetMultimapValue<K,V> setMultimapValue)
SetMultimapExpression
that wraps an
ObservableSetMultimapValue
. If the
ObservableSetMultimapValue
is already a
SetMultimapExpression
, it will be returned. Otherwise a new
concrete SetMultimapBinding
is created that is bound to the
ObservableSetMultimapValue
.K
- The key type of the SetMultimapExpression
.V
- The value type of the SetMultimapExpression
.setMultimapValue
- The ObservableSetMultimapValue
for which to return a
SetMultimapExpression
.ObservableSetMultimapValue
if its already a
SetMultimapExpression
, or a newly created
SetMultimapBinding
for it.public javafx.beans.binding.StringBinding asString()
StringBinding
that holds the value of the
SetMultimapExpression
turned into a String
. If the value
of this SetMultimapExpression
changes, the value of the
StringBinding
will be updated automatically.StringBinding
.public boolean containsEntry(java.lang.Object key, java.lang.Object value)
public boolean containsKey(java.lang.Object key)
public boolean containsValue(java.lang.Object value)
public abstract javafx.beans.property.ReadOnlyBooleanProperty emptyProperty()
SetMultimap
is
empty.isEmpty()
public ObservableSetMultimap<K,V> getValue()
getValue
in interface javafx.beans.value.ObservableValue<ObservableSetMultimap<K,V>>
public boolean isEmpty()
public javafx.beans.binding.BooleanBinding isEqualTo(ObservableSetMultimap<?,?> other)
BooleanBinding
that indicates whether this
ObservableSetMultimap
is equal to the passed in
ObservableSetMultimap
.other
- The ObservableSetMultimap
to compare this
ObservableSetMultimap
to.BooleanBinding
.public javafx.beans.binding.BooleanBinding isNotEqualTo(ObservableSetMultimap<?,?> other)
BooleanBinding
that indicates whether this
ObservableSetMultimap
is not equal to the passed in
ObservableSetMultimap
.other
- The ObservableSetMultimap
to compare this
ObservableSetMultimap
to.BooleanBinding
.public javafx.beans.binding.BooleanBinding isNotNull()
BooleanBinding
.public javafx.beans.binding.BooleanBinding isNull()
BooleanBinding
.public com.google.common.collect.Multiset<K> keys()
public java.util.Set<K> keySet()
public boolean remove(java.lang.Object key, java.lang.Object value)
public java.util.Set<V> removeAll(java.lang.Object key)
public boolean replaceAll(com.google.common.collect.SetMultimap<? extends K,? extends V> setMultimap)
ObservableSetMultimap
ObservableSetMultimap
with the
contents provided by the given SetMultimap
.replaceAll
in interface ObservableSetMultimap<K,V>
setMultimap
- The SetMultimap
whose values should be used to replace
those of this ObservableSetMultimap
.public abstract javafx.beans.property.ReadOnlyIntegerProperty sizeProperty()
SetMultimap
.public java.util.Collection<V> values()
public javafx.beans.binding.SetBinding<V> valuesAt(K key)
ObjectBinding
that contains the values that are
mapped to the specified key.key
- the key of the mappingSetBinding
.Copyright (c) 2014 itemis AG and others. All rights reserved.