Package eu.bandm.tools.util.java
Class BiPredicates
java.lang.Object
eu.bandm.tools.util.java.BiPredicates
Library of constants and combinators for classes implementing
BiPredicate
.-
Method Summary
Modifier and TypeMethodDescriptionstatic <A,
B> BiPredicate<A, B> all()
static <A,
B> BiPredicate<A, B> complement
(BiPredicate<? super A, ? super B> r) static <A,
B> BiPredicate<Collection<? extends A>, Collection<? extends B>> cover
(BiPredicate<A, B> rel) static <A,
B> BiPredicate<A, B> eq()
static <A extends Comparable<? super A>>
BiPredicate<A,A> equal()
static <A> BiPredicate<A,
A> equal
(Comparator<? super A> order) static <A,
B> BiPredicate<A, B> equals()
static <A,
B> BiPredicate<A, B> static <A extends Comparable<? super A>>
BiPredicate<A,A> greater()
static <A> BiPredicate<A,
A> greater
(Comparator<? super A> order) static <A extends Comparable<? super A>>
BiPredicate<A,A> static <A> BiPredicate<A,
A> greaterOrEqual
(Comparator<? super A> order) static <A,
B> BiPredicate<A, B> intersection
(Collection<? extends BiPredicate<? super A, ? super B>> rels) static <A,
B> BiPredicate<B, A> inverse
(BiPredicate<? super A, ? super B> r) static <A,
B> BiFunction<Function<? super A, ? extends B>, BiPredicate<? super B, ? super B>, BiPredicate<A, A>> kernel()
static <A,
B> BiPredicate<A, A> kernel
(Function<? super A, ? extends B> f, BiPredicate<? super B, ? super B> r) static <A,
B, C, D> BiPredicate<A, C> kernel
(Function<? super A, ? extends B> f, Function<? super C, ? extends D> g, BiPredicate<? super B, ? super D> r) static <A extends Comparable<? super A>>
BiPredicate<A,A> less()
static <A> BiPredicate<A,
A> less
(Comparator<? super A> c) static <A extends Comparable<? super A>>
BiPredicate<A,A> static <A> BiPredicate<A,
A> lessOrEqual
(Comparator<? super A> c) static <A,
B> BiPredicate<A, B> none()
static <A,
B> BiPredicate<A, B> union
(Collection<? extends BiPredicate<? super A, ? super B>> rels)
-
Method Details
-
all
-
none
-
eq
-
equals
-
equalsOrNull
-
lessOrEqual
-
lessOrEqual
-
less
-
less
-
equal
-
greater
-
greaterOrEqual
-
greaterOrEqual
-
greater
-
equal
-
inverse
-
complement
-
kernel
public static <A,B, BiPredicate<A,C, D> C> kernel(Function<? super A, ? extends B> f, Function<? super C, ? extends D> g, BiPredicate<? super B, ? super D> r) -
kernel
public static <A,B> BiPredicate<A,A> kernel(Function<? super A, ? extends B> f, BiPredicate<? super B, ? super B> r) -
kernel
public static <A,B> BiFunction<Function<? super A,? extends B>, kernel()BiPredicate<? super B, ? super B>, BiPredicate<A, A>> -
cover
public static <A,B> BiPredicate<Collection<? extends A>,Collection<? extends B>> cover(BiPredicate<A, B> rel) -
union
public static <A,B> BiPredicate<A,B> union(Collection<? extends BiPredicate<? super A, ? super B>> rels) -
intersection
public static <A,B> BiPredicate<A,B> intersection(Collection<? extends BiPredicate<? super A, ? super B>> rels)
-