- All Superinterfaces:
Collection<E>,Iterable<E>,List<E>,javafx.beans.Observable,javafx.collections.ObservableList<E>
public interface EasyObservableList<E>
extends javafx.collections.ObservableList<E>
A standard
ObservableList enriched by convenient helper methods.-
Method Summary
Modifier and TypeMethodDescriptiondefault javafx.beans.binding.BooleanBindingCreates a newBooleanBindingthat holdstrueif all elements of this list match the provided predicate.default javafx.beans.binding.BooleanBindingCreates a newBooleanBindingthat holdstrueif any elements of this list match the provided predicate.default javafx.collections.transformation.FilteredList<E>Creates aFilteredListwrapper of this list using the specified predicate.default EasyObservableList<E>filteredWrapped(javafx.beans.value.ObservableValue<? extends Predicate<E>> predicate) default javafx.beans.binding.BooleanBindingCreates a newBooleanBindingthat holdstrueif this list is empty.default <U> EasyObservableList<U>Creates aMappedListwrapper of this list using the specified mapping function.default <R> EasyBinding<R>default OptionalBinding<E>valueAt(int index) Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArrayMethods inherited from interface javafx.beans.Observable
addListener, removeListenerMethods inherited from interface javafx.collections.ObservableList
addAll, addListener, filtered, remove, removeAll, removeListener, retainAll, setAll, setAll, sorted, sorted
-
Method Details
-
anyMatch
Creates a newBooleanBindingthat holdstrueif any elements of this list match the provided predicate. May not evaluate the predicate on all elements if not necessary for determining the result. If the list is empty thenfalseis returned and the predicate is not evaluated.- Parameters:
predicate- a non-interfering, stateless predicate to apply to elements of this list- Returns:
- the new
BooleanBinding - See Also:
-
allMatch
Creates a newBooleanBindingthat holdstrueif all elements of this list match the provided predicate. May not evaluate the predicate on all elements if not necessary for determining the result. If the list is empty thentrueis returned and the predicate is not evaluated.- Parameters:
predicate- a non-interfering, stateless predicate to apply to elements of this list- Returns:
- the new
BooleanBinding - See Also:
-
isEmptyBinding
default javafx.beans.binding.BooleanBinding isEmptyBinding()Creates a newBooleanBindingthat holdstrueif this list is empty.- Returns:
- the new
BooleanBinding - See Also:
-
Bindings.isEmpty(ObservableList)
-
filtered
default javafx.collections.transformation.FilteredList<E> filtered(javafx.beans.value.ObservableValue<? extends Predicate<E>> predicate) Creates aFilteredListwrapper of this list using the specified predicate.- Parameters:
predicate- the predicate to use- Returns:
- new
FilteredList - See Also:
-
ObservableList.filtered(Predicate)
-
filteredWrapped
default EasyObservableList<E> filteredWrapped(javafx.beans.value.ObservableValue<? extends Predicate<E>> predicate) -
mapped
Creates aMappedListwrapper of this list using the specified mapping function.- Parameters:
f- the mapping function to transform the items- Returns:
- new
MappedList - See Also:
-
valueAt
- See Also:
-
reduce
-