public abstract class OpsPatterns extends Object
Constructor and Description |
---|
OpsPatterns() |
Modifier and Type | Method and Description |
---|---|
static <A> Pattern<A> |
filter(Predicate<? super A> pred,
Pattern<? super A> body)
Deprecated.
Use the method
FunctionPatterns.filter(java.util.function.Predicate, Pattern)
instead. |
static <A> Pattern<A> |
ifThenElse(Predicate<? super A> condition,
Pattern<? super A> thenBody,
Pattern<? super A> elseBody) |
static <A,B> Pattern<A> |
image(Multimap<A,B> items,
Pattern<? super B> body) |
static <A> Pattern<A> |
test(Predicate<? super A> pred)
Deprecated.
Use the method
FunctionPatterns.test(java.util.function.Predicate) instead. |
static <A,B> Pattern<A> |
transform(Function<? super A,? extends B> fun,
Pattern<? super B> body)
Deprecated.
Use the method
FunctionPatterns.transform(java.util.function.Function, Pattern)
instead. |
@Deprecated public static <A,B> Pattern<A> transform(Function<? super A,? extends B> fun, Pattern<? super B> body)
FunctionPatterns.transform(java.util.function.Function, Pattern)
instead.public static <A> Pattern<A> ifThenElse(Predicate<? super A> condition, Pattern<? super A> thenBody, Pattern<? super A> elseBody)
@Deprecated public static <A> Pattern<A> filter(Predicate<? super A> pred, Pattern<? super A> body)
FunctionPatterns.filter(java.util.function.Predicate, Pattern)
instead.@Deprecated public static <A> Pattern<A> test(Predicate<? super A> pred)
FunctionPatterns.test(java.util.function.Predicate)
instead.see also the complete user documentation .