Class FunctionPatterns

java.lang.Object
eu.bandm.tools.paisley.FunctionPatterns

public abstract class FunctionPatterns extends Object
  • Field Details

    • functionApply

      static final Method functionApply
    • predicateTest

      static final Method predicateTest
  • Method Details

    • transform

      public static <A, B> Motif<B,A> transform(Function<? super A,? extends B> fun)
    • transform

      public static <A, B> Pattern<A> transform(Function<? super A,? extends B> fun, Pattern<B> body)
    • transformIfNonNull

      public static <A, B> Motif<B,A> transformIfNonNull(Function<? super A,? extends B> fun)
    • transformIfNonNull

      public static <A, B> Pattern<A> transformIfNonNull(Function<? super A,? extends B> fun, Pattern<B> body)
    • ifThenElse

      public static <A> Pattern<A> ifThenElse(Predicate<? super A> condition, Pattern<? super A> thenBody, Pattern<? super A> elseBody)
    • filter

      public static <A> Pattern<A> filter(Predicate<? super A> pred, Pattern<? super A> body)
    • test

      public static <A> Pattern<A> test(Predicate<? super A> pred)