public enum PrintablePredicateFactory extends Enum<PrintablePredicateFactory>
Modifier and Type | Class and Description |
---|---|
static class |
PrintablePredicateFactory.Conjunction<T> |
static class |
PrintablePredicateFactory.Disjunction<T> |
static class |
PrintablePredicateFactory.Leaf |
static class |
PrintablePredicateFactory.ParameterizedLeafFactory |
static class |
PrintablePredicateFactory.StreamPredicate<E> |
static class |
PrintablePredicateFactory.TransformingPredicate<T,R>
This is an interface that corresponds to a "matcher" in other assertion
libraries.
|
Enum Constant and Description |
---|
CONJUNCTION |
DISJUNCTION |
LEAF |
NEGATION |
Modifier and Type | Method and Description |
---|---|
static <E> Predicate<Stream<E>> |
allMatch(Predicate<E> predicate) |
static <T> PrintablePredicateFactory.Conjunction<T> |
allOf(List<Predicate<? super T>> predicates) |
static <T> PrintablePredicateFactory.Conjunction<T> |
and(List<Predicate<? super T>> predicates) |
static <E> Predicate<Stream<E>> |
anyMatch(Predicate<E> predicate) |
static <T> PrintablePredicateFactory.Disjunction<T> |
anyOf(List<Predicate<? super T>> predicates) |
static <T> Predicate<T> |
leaf(String name,
Predicate<T> predicate) |
static <T> Predicate<T> |
leaf(Supplier<String> formatter,
Predicate<T> predicate) |
static <T> Predicate<T> |
leaf(Supplier<String> formatter,
Predicate<T> predicate,
Object fallbackCreator) |
static <E> Predicate<Stream<E>> |
noneMatch(Predicate<E> predicate) |
static <T> com.github.valid8j.pcond.core.printable.PrintablePredicateFactory.Negation<T> |
not_(Predicate<T> predicate) |
static <T> Predicate<T> |
not(Predicate<T> predicate) |
static <T> PrintablePredicateFactory.Disjunction<T> |
or(List<Predicate<? super T>> predicates) |
static <T> Predicate<T> |
parameterizedLeaf(Function<List<Object>,Supplier<String>> formatterFactory,
Function<List<Object>,Predicate<T>> predicateFactory,
List<Object> args,
Object fallbackCreator) |
static <T> Predicate<T> |
toLeafIfNotPrintable(Predicate<T> predicate) |
static <P,O> PrintablePredicateFactory.TransformingPredicate.Factory<P,O> |
transform(Function<O,P> function) |
static PrintablePredicateFactory |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PrintablePredicateFactory[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
static <T> Predicate<CurriedContext> |
variableBundlePredicate(Predicate<T> predicate,
int argIndex) |
public static final PrintablePredicateFactory NEGATION
public static final PrintablePredicateFactory CONJUNCTION
public static final PrintablePredicateFactory DISJUNCTION
public static final PrintablePredicateFactory LEAF
public static PrintablePredicateFactory[] values()
for (PrintablePredicateFactory c : PrintablePredicateFactory.values()) System.out.println(c);
public static PrintablePredicateFactory valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static <T> Predicate<T> leaf(Supplier<String> formatter, Predicate<T> predicate, Object fallbackCreator)
public static <T> Predicate<T> parameterizedLeaf(Function<List<Object>,Supplier<String>> formatterFactory, Function<List<Object>,Predicate<T>> predicateFactory, List<Object> args, Object fallbackCreator)
public static <P,O> PrintablePredicateFactory.TransformingPredicate.Factory<P,O> transform(Function<O,P> function)
public static <T> PrintablePredicateFactory.Conjunction<T> and(List<Predicate<? super T>> predicates)
public static <T> PrintablePredicateFactory.Disjunction<T> or(List<Predicate<? super T>> predicates)
public static <T> PrintablePredicateFactory.Conjunction<T> allOf(List<Predicate<? super T>> predicates)
public static <T> PrintablePredicateFactory.Disjunction<T> anyOf(List<Predicate<? super T>> predicates)
public static <T> com.github.valid8j.pcond.core.printable.PrintablePredicateFactory.Negation<T> not_(Predicate<T> predicate)
public static <T> Predicate<CurriedContext> variableBundlePredicate(Predicate<T> predicate, int argIndex)
Copyright © 2024. All rights reserved.