Class SetMultimapExpression<K,V> 
java.lang.Object
org.eclipse.gef.common.beans.binding.SetMultimapExpression<K,V> 
- Type Parameters:
- K- The key type of the- ObservableSetMultimap.
- V- The value type of the- ObservableSetMultimap.
- All Implemented Interfaces:
- Multimap<K,,- V> - SetMultimap<K,,- V> - javafx.beans.Observable,- javafx.beans.value.ObservableObjectValue<ObservableSetMultimap<K,,- V>> - javafx.beans.value.ObservableValue<ObservableSetMultimap<K,,- V>> - ObservableSetMultimapValue<K,,- V> - ObservableSetMultimap<K,- V> 
- Direct Known Subclasses:
- ReadOnlySetMultimapProperty,- SetMultimapBinding
public abstract class SetMultimapExpression<K,V> 
extends Object
implements ObservableSetMultimapValue<K,V> 
A 
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.
- 
Property SummaryPropertiesTypePropertyDescriptionabstract javafx.beans.property.ReadOnlyBooleanPropertyA boolean property that reflects whether theSetMultimapis empty.abstract javafx.beans.property.ReadOnlyIntegerPropertyAn integer property that represents the size of theSetMultimap.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionMap<K,Collection<V>> asMap()javafx.beans.binding.StringBindingasString()voidclear()booleancontainsEntry(Object key, Object value) booleancontainsKey(Object key) booleancontainsValue(Object value) abstract javafx.beans.property.ReadOnlyBooleanPropertyA boolean property that reflects whether theSetMultimapis empty.entries()getValue()booleanisEmpty()Gets the value of the property empty.javafx.beans.binding.BooleanBindingisEqualTo(ObservableSetMultimap<?, ?> other) Creates a newBooleanBindingthat indicates whether thisObservableSetMultimapis equal to the passed inObservableSetMultimap.javafx.beans.binding.BooleanBindingisNotEqualTo(ObservableSetMultimap<?, ?> other) Creates a newBooleanBindingthat indicates whether thisObservableSetMultimapis not equal to the passed inObservableSetMultimap.javafx.beans.binding.BooleanBindingjavafx.beans.binding.BooleanBindingisNull()keys()keySet()booleanbooleanbooleanbooleanbooleanreplaceAll(SetMultimap<? extends K, ? extends V> setMultimap) Replaces all the contents of theObservableSetMultimapwith the contents provided by the givenSetMultimap.replaceValues(K key, Iterable<? extends V> values) static <K,V> SetMultimapExpression<K, V> setMultimapExpression(ObservableSetMultimapValue<K, V> setMultimapValue) Returns aSetMultimapExpressionthat wraps anObservableSetMultimapValue.intsize()abstract javafx.beans.property.ReadOnlyIntegerPropertyAn integer property that represents the size of theSetMultimap.values()javafx.beans.binding.SetBinding<V>Creates a newObjectBindingthat contains the values that are mapped to the specified key.javafx.beans.binding.SetBinding<V>Creates a newObjectBindingthat contains the values that are mapped to the specified key.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javafx.beans.ObservableaddListener, removeListenerMethods inherited from interface javafx.beans.value.ObservableObjectValuegetMethods inherited from interface org.eclipse.gef.common.collections.ObservableSetMultimapaddListener, removeListenerMethods inherited from interface javafx.beans.value.ObservableValueaddListener, removeListenerMethods inherited from interface com.google.common.collect.SetMultimapequals
- 
Property Details- 
emptypublic abstract javafx.beans.property.ReadOnlyBooleanProperty emptyPropertyA boolean property that reflects whether theSetMultimapis empty.- See Also:
 
- 
sizepublic abstract javafx.beans.property.ReadOnlyIntegerProperty sizePropertyAn integer property that represents the size of theSetMultimap.
 
- 
- 
Constructor Details- 
SetMultimapExpressionpublic SetMultimapExpression()
 
- 
- 
Method Details- 
setMultimapExpressionpublic static <K,V> SetMultimapExpression<K,V> setMultimapExpression(ObservableSetMultimapValue<K, V> setMultimapValue) Returns aSetMultimapExpressionthat wraps anObservableSetMultimapValue. If theObservableSetMultimapValueis already aSetMultimapExpression, it will be returned. Otherwise a new concreteSetMultimapBindingis created that is bound to theObservableSetMultimapValue.- Type Parameters:
- K- The key type of the- SetMultimapExpression.
- V- The value type of the- SetMultimapExpression.
- Parameters:
- setMultimapValue- The- ObservableSetMultimapValuefor which to return a- SetMultimapExpression.
- Returns:
- The passed in ObservableSetMultimapValueif its already aSetMultimapExpression, or a newly createdSetMultimapBindingfor it.
 
- 
asMap
- 
asStringpublic javafx.beans.binding.StringBinding asString()Creates aStringBindingthat holds the value of theSetMultimapExpressionturned into aString. If the value of thisSetMultimapExpressionchanges, the value of theStringBindingwill be updated automatically.- Returns:
- A new StringBinding.
 
- 
clearpublic void clear()
- 
containsEntry- Specified by:
- containsEntryin interface- Multimap<K,- V> 
 
- 
containsKey- Specified by:
- containsKeyin interface- Multimap<K,- V> 
 
- 
containsValue- Specified by:
- containsValuein interface- Multimap<K,- V> 
 
- 
emptyPropertypublic abstract javafx.beans.property.ReadOnlyBooleanProperty emptyProperty()A boolean property that reflects whether theSetMultimapis empty.- See Also:
 
- 
entries
- 
get
- 
getValue- Specified by:
- getValuein interface- javafx.beans.value.ObservableValue<K>
 
- 
isEmptypublic boolean isEmpty()Gets the value of the property empty.- Specified by:
- isEmptyin interface- Multimap<K,- V> 
- Property description:
- A boolean property that reflects whether the SetMultimapis empty.
 
- 
isEqualToCreates a newBooleanBindingthat indicates whether thisObservableSetMultimapis equal to the passed inObservableSetMultimap.- Parameters:
- other- The- ObservableSetMultimapto compare this- ObservableSetMultimapto.
- Returns:
- A new BooleanBinding.
 
- 
isNotEqualToCreates a newBooleanBindingthat indicates whether thisObservableSetMultimapis not equal to the passed inObservableSetMultimap.- Parameters:
- other- The- ObservableSetMultimapto compare this- ObservableSetMultimapto.
- Returns:
- A new BooleanBinding.
 
- 
isNotNullpublic javafx.beans.binding.BooleanBinding isNotNull()- Returns:
- A new BooleanBinding.
 
- 
isNullpublic javafx.beans.binding.BooleanBinding isNull()- Returns:
- A new BooleanBinding.
 
- 
keys
- 
keySet
- 
put
- 
putAll
- 
putAll
- 
remove
- 
removeAll
- 
replaceAllDescription copied from interface:ObservableSetMultimapReplaces all the contents of theObservableSetMultimapwith the contents provided by the givenSetMultimap.- Specified by:
- replaceAllin interface- ObservableSetMultimap<K,- V> 
- Parameters:
- setMultimap- The- SetMultimapwhose values should be used to replace those of this- ObservableSetMultimap.
- Returns:
- Whether this map was changed through the replace operation.
 
- 
replaceValues- Specified by:
- replaceValuesin interface- Multimap<K,- V> 
- Specified by:
- replaceValuesin interface- SetMultimap<K,- V> 
 
- 
sizepublic int size()
- 
sizePropertypublic abstract javafx.beans.property.ReadOnlyIntegerProperty sizeProperty()An integer property that represents the size of theSetMultimap.
- 
values
- 
valuesAtCreates a newObjectBindingthat contains the values that are mapped to the specified key.- Parameters:
- key- the key of the mapping
- Returns:
- A new SetBinding.
 
- 
valuesAtCreates a newObjectBindingthat contains the values that are mapped to the specified key.- Parameters:
- key- The key of the mapping.
- Returns:
- The ObjectBinding.
 
 
-