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> pred) 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> pred) static <A,
B> BiPredicate <A, A> kernel
(Function<? super A, ? extends B> fun, BiPredicate<? super B, ? super B> pred) static <A,
B, C, D>
BiPredicate<A, C> kernel
(Function<? super A, ? extends B> left, Function<? super C, ? extends D> right, BiPredicate<? super B, ? super D> pred) static <A extends Comparable<? super A>>
BiPredicate<A, A> less()
static <A> BiPredicate
<A, A> less
(Comparator<? super A> order) static <A extends Comparable<? super A>>
BiPredicate<A, A> static <A> BiPredicate
<A, A> lessOrEqual
(Comparator<? super A> order) 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> left, Function<? super C, ? extends D> right, BiPredicate<? super B, ? super D> pred) -
kernel
public static <A,B> BiPredicate<A,A> kernel(Function<? super A, ? extends B> fun, BiPredicate<? super B, ? super B> pred) -
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)
-