Interface ObservableSetValue<E>
- Type Parameters:
E- the type of theSetelements
- All Superinterfaces:
Collection<E>, Iterable<E>, Observable, ObservableObjectValue<ObservableSet<E>>, ObservableSet<E>, ObservableValue<ObservableSet<E>>, Set<E>
- All Known Implementing Classes:
ReadOnlySetProperty, ReadOnlySetPropertyBase, ReadOnlySetWrapper, SetBinding, SetExpression, SetProperty, SetPropertyBase, SimpleSetProperty
public interface ObservableSetValue<E>
extends ObservableObjectValue<ObservableSet<E>>, ObservableSet<E>
An observable reference to an
ObservableSet.- Since:
- JavaFX 2.1
- See Also:
-
Method Summary
Methods declared in interface Collection
parallelStream, removeIf, stream, toArrayMethods declared in interface Observable
addListener, removeListener, subscribeModifier and TypeMethodDescriptionvoidaddListener(InvalidationListener listener) Adds anInvalidationListenerwhich will be notified whenever theObservablebecomes invalid.voidremoveListener(InvalidationListener listener) Removes the given listener from the list of listeners, that are notified whenever the value of theObservablebecomes invalid.default SubscriptionCreates aSubscriptionon thisObservablewhich callsinvalidationSubscriberwhenever it becomes invalid.Methods declared in interface ObservableObjectValue
getModifier and TypeMethodDescriptionget()Returns the current value of thisObservableObjectValue<T>.Methods declared in interface ObservableSet
addListener, removeListenerModifier and TypeMethodDescriptionvoidaddListener(SetChangeListener<? super E> listener) Add a listener to this observable set.voidremoveListener(SetChangeListener<? super E> listener) Tries to removed a listener from this observable set.Methods declared in interface ObservableValue
addListener, flatMap, getValue, map, orElse, removeListener, subscribe, subscribe, whenModifier and TypeMethodDescriptionvoidaddListener(ChangeListener<? super ObservableSet<E>> listener) Adds aChangeListenerwhich will be notified whenever the value of theObservableValuechanges.default <U> ObservableValue<U> flatMap(Function<? super ObservableSet<E>, ? extends ObservableValue<? extends U>> mapper) Returns anObservableValuethat holds the value of anObservableValueproduced by applying the given mapping function on this value.getValue()Returns the current value of thisObservableValuedefault <U> ObservableValue<U> map(Function<? super ObservableSet<E>, ? extends U> mapper) Returns anObservableValuethat holds the result of applying the given mapping function on this value.default ObservableValue<ObservableSet<E>> orElse(ObservableSet<E> constant) Returns anObservableValuethat holds this value, or the given constant if it isnull.voidremoveListener(ChangeListener<? super ObservableSet<E>> listener) Removes the given listener from the list of listeners that are notified whenever the value of theObservableValuechanges.default Subscriptionsubscribe(BiConsumer<? super ObservableSet<E>, ? super ObservableSet<E>> changeSubscriber) Creates aSubscriptionon thisObservableValuewhich calls the givenchangeSubscriberwith the old and new value whenever its value changes.default Subscriptionsubscribe(Consumer<? super ObservableSet<E>> valueSubscriber) Creates aSubscriptionon thisObservableValuewhich immediately provides the current value to the givenvalueSubscriber, followed by any subsequent values whenever its value changes.default ObservableValue<ObservableSet<E>> when(ObservableValue<Boolean> condition) Returns anObservableValuethat holds this value and is updated only whenconditionholdstrue.