public abstract class Logic extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Logic.Binary
and, or, not, always, never.
|
static class |
Logic.Ternary
and, or, not, always, never.
|
static class |
Logic.Unary
and, or, not, always, never.
|
| Constructor and Description |
|---|
Logic() |
| Modifier and Type | Method and Description |
|---|---|
static <T1,T2> BiPredicate<T1,T2> |
and(BiPredicate<T1,T2>... predicates)
Creates a composite AND predicate from the given predicates.
|
static <T1,T2> BiPredicate<T1,T2> |
and(BiPredicate<T1,T2> first,
BiPredicate<T1,T2> second)
Creates a composite AND predicate from the given predicates.
|
static <T1,T2> BiPredicate<T1,T2> |
and(BiPredicate<T1,T2> first,
BiPredicate<T1,T2> second,
BiPredicate<T1,T2> third)
Creates a composite AND predicate from the given predicates.
|
static <T> Predicate<T> |
and(Predicate<T>... predicates)
Creates a composite AND predicate from the given predicates.
|
static <T> Predicate<T> |
and(Predicate<T> first,
Predicate<T> second)
Creates a composite AND predicate from the given predicates.
|
static <T> Predicate<T> |
and(Predicate<T> first,
Predicate<T> second,
Predicate<T> third)
Creates a composite AND predicate from the given predicates.
|
static <T1,T2,T3> TriPredicate<T1,T2,T3> |
and(TriPredicate<T1,T2,T3>... predicates)
Creates a composite AND predicate from the given predicates.
|
static <T1,T2,T3> TriPredicate<T1,T2,T3> |
and(TriPredicate<T1,T2,T3> first,
TriPredicate<T1,T2,T3> second)
Creates a composite AND predicate from the given predicates.
|
static <T1,T2,T3> TriPredicate<T1,T2,T3> |
and(TriPredicate<T1,T2,T3> first,
TriPredicate<T1,T2,T3> second,
TriPredicate<T1,T2,T3> third)
Creates a composite AND predicate from the given predicates.
|
static <T1,T2> BiPredicate<T1,T2> |
not(BiPredicate<T1,T2> predicate)
Negates the given predicate.
|
static <T> Predicate<T> |
not(Predicate<T> predicate)
Negates the given predicate.
|
static <T1,T2,T3> TriPredicate<T1,T2,T3> |
not(TriPredicate<T1,T2,T3> predicate)
Negates the given predicate.
|
static <T1,T2> BiPredicate<T1,T2> |
or(BiPredicate<T1,T2>... predicates)
Creates a composite OR predicate from the given predicates.
|
static <T1,T2> BiPredicate<T1,T2> |
or(BiPredicate<T1,T2> first,
BiPredicate<T1,T2> second)
Creates a composite OR predicate from the given predicates.
|
static <T1,T2> BiPredicate<T1,T2> |
or(BiPredicate<T1,T2> first,
BiPredicate<T1,T2> second,
BiPredicate<T1,T2> third)
Creates a composite OR predicate from the given predicates.
|
static <T> Predicate<T> |
or(Predicate<T>... predicates)
Creates a composite OR predicate from the given predicates.
|
static <T> Predicate<T> |
or(Predicate<T> first,
Predicate<T> second)
Creates a composite OR predicate from the given predicates.
|
static <T> Predicate<T> |
or(Predicate<T> first,
Predicate<T> second,
Predicate<T> third)
Creates a composite OR predicate from the given predicates.
|
static <T1,T2,T3> TriPredicate<T1,T2,T3> |
or(TriPredicate<T1,T2,T3>... predicates)
Creates a composite OR predicate from the given predicates.
|
static <T1,T2,T3> TriPredicate<T1,T2,T3> |
or(TriPredicate<T1,T2,T3> first,
TriPredicate<T1,T2,T3> second)
Creates a composite OR predicate from the given predicates.
|
static <T1,T2,T3> TriPredicate<T1,T2,T3> |
or(TriPredicate<T1,T2,T3> first,
TriPredicate<T1,T2,T3> second,
TriPredicate<T1,T2,T3> third)
Creates a composite OR predicate from the given predicates.
|
public static <T> Predicate<T> and(Predicate<T> first, Predicate<T> second)
T - the element type parameterfirst - second - public static <T> Predicate<T> and(Predicate<T> first, Predicate<T> second, Predicate<T> third)
T - the element type parameterfirst - second - third - public static <T> Predicate<T> and(Predicate<T>... predicates)
T - the element type parameterpredicates - the predicates to be composedpublic static <T1,T2> BiPredicate<T1,T2> and(BiPredicate<T1,T2> first, BiPredicate<T1,T2> second)
T1 - the former element type parameterT2 - the latter element type parameterfirst - second - public static <T1,T2> BiPredicate<T1,T2> and(BiPredicate<T1,T2> first, BiPredicate<T1,T2> second, BiPredicate<T1,T2> third)
T1 - the former element type parameterT2 - the latter element type parameterfirst - second - third - public static <T1,T2> BiPredicate<T1,T2> and(BiPredicate<T1,T2>... predicates)
T1 - the former element type parameterT2 - the latter element type parameterpredicates - public static <T1,T2,T3> TriPredicate<T1,T2,T3> and(TriPredicate<T1,T2,T3> first, TriPredicate<T1,T2,T3> second)
T1 - the first element type parameterT2 - the second element type parameterT3 - the third element type parameterfirst - second - public static <T1,T2,T3> TriPredicate<T1,T2,T3> and(TriPredicate<T1,T2,T3> first, TriPredicate<T1,T2,T3> second, TriPredicate<T1,T2,T3> third)
T1 - the first element type parameterT2 - the second element type parameterT3 - the third element type parameterfirst - second - third - public static <T1,T2,T3> TriPredicate<T1,T2,T3> and(TriPredicate<T1,T2,T3>... predicates)
T1 - the first element type parameterT2 - the second element type parameterT3 - the third element type parameterpredicates - public static <T> Predicate<T> or(Predicate<T> first, Predicate<T> second)
T - the element type parameterfirst - second - public static <T> Predicate<T> or(Predicate<T> first, Predicate<T> second, Predicate<T> third)
T - the element type parameterfirst - second - third - public static <T> Predicate<T> or(Predicate<T>... predicates)
T - the element type parameterpredicates - public static <T1,T2> BiPredicate<T1,T2> or(BiPredicate<T1,T2> first, BiPredicate<T1,T2> second)
T1 - the former element type parameterT2 - the latter element type parameterfirst - second - public static <T1,T2> BiPredicate<T1,T2> or(BiPredicate<T1,T2> first, BiPredicate<T1,T2> second, BiPredicate<T1,T2> third)
T1 - the former element type parameterT2 - the latter element type parameterfirst - second - third - public static <T1,T2> BiPredicate<T1,T2> or(BiPredicate<T1,T2>... predicates)
T1 - the former element type parameterT2 - the latter element type parameterpredicates - public static <T1,T2,T3> TriPredicate<T1,T2,T3> or(TriPredicate<T1,T2,T3> first, TriPredicate<T1,T2,T3> second)
T1 - the first element type parameterT2 - the second element type parameterT3 - the third element type parameterfirst - second - public static <T1,T2,T3> TriPredicate<T1,T2,T3> or(TriPredicate<T1,T2,T3> first, TriPredicate<T1,T2,T3> second, TriPredicate<T1,T2,T3> third)
T1 - the first element type parameterT2 - the second element type parameterT3 - the third element type parameterfirst - second - third - public static <T1,T2,T3> TriPredicate<T1,T2,T3> or(TriPredicate<T1,T2,T3>... predicates)
T1 - the first element type parameterT2 - the second element type parameterT3 - the third element type parameterpredicates - public static <T> Predicate<T> not(Predicate<T> predicate)
T - the element type parameterpredicate - the predicate to be negatedpublic static <T1,T2> BiPredicate<T1,T2> not(BiPredicate<T1,T2> predicate)
T1 - the first element type parameterT2 - the second element type parameterpredicate - the predicate to be negatedpublic static <T1,T2,T3> TriPredicate<T1,T2,T3> not(TriPredicate<T1,T2,T3> predicate)
T1 - the first element type parameterT2 - the second element type parameterT3 - the third element type parameterpredicate - the predicate to be negatedCopyright © 2017. All rights reserved.