Interface Filter<M,A,S extends HK<M,A,S>>

All Known Subinterfaces:
Maybe<T>, Promise<T>, Try<T>
All Known Implementing Classes:
Maybe.None, Maybe.Some, PromisesSet, RunnablePromise, SolvablePromise, SolvedPromise, Try.Failure, Try.Success

public interface Filter<M,A,S extends HK<M,A,S>>
Filter interface
  • Method Summary

    Modifier and Type
    Method
    Description
    HK<M,A,S>
    filter(java.util.function.Predicate<? super A> predicate)
    Method called when the current data must be filtered using a given predicate.
  • Method Details

    • filter

      HK<M,A,S> filter(java.util.function.Predicate<? super A> predicate)
      Method called when the current data must be filtered using a given predicate.
      Parameters:
      predicate - The filter
      Returns:
      a filtered data