Interface EasyObservableList<E>

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 Details

    • anyMatch

      default javafx.beans.binding.BooleanBinding anyMatch(Predicate<? super E> predicate)
      Creates a new BooleanBinding that holds true if 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 then false is 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

      default javafx.beans.binding.BooleanBinding allMatch(Predicate<? super E> predicate)
      Creates a new BooleanBinding that holds true if 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 then true is 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 new BooleanBinding that holds true if 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 a FilteredList wrapper 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

      default <U> EasyObservableList<U> mapped(Function<? super E,? extends U> f)
      Creates a MappedList wrapper of this list using the specified mapping function.
      Parameters:
      f - the mapping function to transform the items
      Returns:
      new MappedList
      See Also:
    • valueAt

      default OptionalBinding<E> valueAt(int index)
      See Also:
    • reduce

      default <R> EasyBinding<R> reduce(Function<? super Stream<? extends E>,? extends R> accumulator)
      See Also: