Class ReadOnlyMultisetPropertyBase<E>
java.lang.Object
org.eclipse.gef.common.beans.binding.MultisetExpression<E>
org.eclipse.gef.common.beans.property.ReadOnlyMultisetProperty<E>
org.eclipse.gef.common.beans.property.ReadOnlyMultisetPropertyBase<E>
- Type Parameters:
E
- The element type of theObservableMultiset
.
- All Implemented Interfaces:
Multiset<E>
,Iterable<E>
,Collection<E>
,Observable
,ReadOnlyProperty<ObservableMultiset<E>>
,ObservableObjectValue<ObservableMultiset<E>>
,ObservableValue<ObservableMultiset<E>>
,ObservableMultisetValue<E>
,ObservableMultiset<E>
Abstract base class for implementing a read-only
Property
wrapping an
ObservableMultiset
.
This class provides identical functionality for Multiset
as
ReadOnlyMapPropertyBase
for Map
,
ReadOnlySetPropertyBase
for Set
, or
ReadOnlyListPropertyBase
for List
.
-
Property Summary
Properties inherited from class org.eclipse.gef.common.beans.binding.MultisetExpression
empty, size
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.google.common.collect.Multiset
Multiset.Entry<E extends Object>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addListener
(InvalidationListener listener) void
addListener
(ChangeListener<? super ObservableMultiset<E>> listener) void
addListener
(MultisetChangeListener<? super E> listener) Adds aMultisetChangeListener
to thisObservableMultiset
.protected void
Fires notifications to all attachedInvalidationListeners
,ChangeListeners
, andMultisetChangeListeners
.protected void
fireValueChangedEvent
(MultisetChangeListener.Change<? extends E> change) Fires notifications to all attachedInvalidationListeners
,ChangeListeners
, andMultisetChangeListeners
.void
removeListener
(InvalidationListener listener) void
removeListener
(ChangeListener<? super ObservableMultiset<E>> listener) void
removeListener
(MultisetChangeListener<? super E> listener) Removes aMultisetChangeListener
from thisObservableMultiset
.Methods inherited from class org.eclipse.gef.common.beans.property.ReadOnlyMultisetProperty
appendValueToString, bindContent, bindContentBidirectional, equals, hashCode, toString, unbindContent, unbindContentBidirectional
Methods inherited from class org.eclipse.gef.common.beans.binding.MultisetExpression
add, add, addAll, asString, clear, contains, containsAll, count, elementSet, emptyProperty, entrySet, getValue, isEmpty, isEqualTo, isNotEqualTo, isNotNull, isNull, iterator, multisetExpression, remove, remove, removeAll, replaceAll, retainAll, setCount, setCount, size, sizeProperty, toArray, toArray
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface com.google.common.collect.Multiset
forEach, forEachEntry, spliterator
Methods inherited from interface javafx.beans.value.ObservableObjectValue
get
Methods inherited from interface javafx.beans.value.ObservableValue
getValue
Methods inherited from interface javafx.beans.property.ReadOnlyProperty
getBean, getName
-
Constructor Details
-
ReadOnlyMultisetPropertyBase
public ReadOnlyMultisetPropertyBase()
-
-
Method Details
-
addListener
-
removeListener
-
addListener
-
removeListener
-
addListener
Description copied from interface:ObservableMultiset
Adds aMultisetChangeListener
to thisObservableMultiset
. If the same listener is registered more than once, it will be notified more than once.- Parameters:
listener
- TheMultisetChangeListener
to add.
-
removeListener
Description copied from interface:ObservableMultiset
Removes aMultisetChangeListener
from thisObservableMultiset
. Will do nothing if the listener was not attached to thisObservableMultiset
. If it was added more than once, then only the first occurrence will be removed.- Parameters:
listener
- TheMultisetChangeListener
to remove.
-
fireValueChangedEvent
protected void fireValueChangedEvent()Fires notifications to all attachedInvalidationListeners
,ChangeListeners
, andMultisetChangeListeners
. -
fireValueChangedEvent
Fires notifications to all attachedInvalidationListeners
,ChangeListeners
, andMultisetChangeListeners
.- Parameters:
change
- the change that needs to be propagated
-