public class F0 extends Object
| Constructor and Description |
|---|
F0() |
| Modifier and Type | Method and Description |
|---|---|
static <T> IgnitePredicate<T> |
and(@Nullable IgnitePredicate<? super T>[] p1,
IgnitePredicate<? super T>... p2)
Get a predicate (non peer-deployable) that evaluates to
true if each of its component predicates
evaluates to true. |
static <T> IgnitePredicate<T> |
and(@Nullable IgnitePredicate<? super T> p,
IgnitePredicate<? super T>... ps)
Get a predicate (not peer-deployable) that evaluates to
true if each of its component predicates
evaluates to true. |
static <K,V> Map<K,V> |
asMap(K key,
V val)
Creates map with given values, adding a strict not-null check for value.
|
static <T> IgnitePredicate<T> |
contains(@Nullable Collection<T> c)
Provides predicate (not peer-deployable) which returns
true if it receives an element
that is contained in the passed in collection. |
static <T> IgnitePredicate<T> |
equalTo(T target)
Gets predicate (not perr-deployable) that evaluates to
true if its free variable is equal
to target or both are null. |
static <T> IgnitePredicate<T> |
in(@Nullable Collection<? extends T> c)
Gets predicate (not peer-deployable) that returns
true if its free variable is contained
in given collection. |
static boolean |
isAllNodePredicates(IgnitePredicate<?>... ps)
Tests if all passed in predicates are instances of
GridNodePredicate class. |
static <T> IgnitePredicate<T> |
not(IgnitePredicate<? super T>... p)
Negates given predicates.
|
static <T> IgnitePredicate<T> |
notContains(@Nullable Collection<T> c)
Provides predicate (not peer-deployable) which returns
true if it receives an element
that is not contained in the passed in collection. |
static <T> IgnitePredicate<T> |
notEqualTo(T target)
Gets predicate (not peer-deployable) that evaluates to
true if its free variable is not equal
to target or both are null. |
static <T> IgnitePredicate<T> |
notIn(@Nullable Collection<? extends T> c)
Gets predicate (not peer-deployable) that returns
true if its free variable
is not contained in given collection. |
public static <T> IgnitePredicate<T> not(@Nullable IgnitePredicate<? super T>... p)
Gets predicate (not peer-deployable) that evaluates to true if any of given predicates
evaluates to false. If all predicates evaluate to true the
result predicate will evaluate to false.
T - Type of the free variable, i.e. the element the predicate is called on.p - Predicate to negate.public static <T> IgnitePredicate<T> notEqualTo(@Nullable T target)
true if its free variable is not equal
to target or both are null.T - Type of the free variable, i.e. the element the predicate is called on.target - Object to compare free variable to.true if its free variable is not equal
to target or both are null.public static <T> IgnitePredicate<T> notIn(@Nullable @Nullable Collection<? extends T> c)
true if its free variable
is not contained in given collection.T - Type of the free variable for the predicate and type of the
collection elements.c - Collection to check for containment.true if its free variable is not
contained in given collection.public static <T> IgnitePredicate<T> equalTo(@Nullable T target)
true if its free variable is equal
to target or both are null.T - Type of the free variable, i.e. the element the predicate is called on.target - Object to compare free variable to.true if its free variable is equal to
target or both are null.public static <T> IgnitePredicate<T> and(@Nullable @Nullable IgnitePredicate<? super T>[] p1, @Nullable IgnitePredicate<? super T>... p2)
true if each of its component predicates
evaluates to true. The components are evaluated in order they are supplied.
Evaluation will be stopped as soon as first predicate evaluates to false.
Passed in predicates are NOT copied. If no predicates are passed in the returned
predicate will always evaluate to false.T - Type of the free variable, i.e. the element the predicate is called on.p1 - Passed in predicates.p2 - Passed in predicates.true if each of its component predicates
evaluates to true.public static <T> IgnitePredicate<T> and(@Nullable @Nullable IgnitePredicate<? super T> p, @Nullable IgnitePredicate<? super T>... ps)
true if each of its component predicates
evaluates to true. The components are evaluated in order they are supplied.
Evaluation will be stopped as soon as first predicate evaluates to false.
Passed in predicates are NOT copied. If no predicates are passed in the returned
predicate will always evaluate to false.T - Type of the free variable, i.e. the element the predicate is called on.ps - Passed in predicate. If none provided - always-false predicate is
returned.true if each of its component predicates
evaluates to true.public static <T> IgnitePredicate<T> in(@Nullable @Nullable Collection<? extends T> c)
true if its free variable is contained
in given collection.T - Type of the free variable for the predicate and type of the
collection elements.c - Collection to check for containment.true if its free variable is
contained in given collection.public static <T> IgnitePredicate<T> contains(@Nullable @Nullable Collection<T> c)
true if it receives an element
that is contained in the passed in collection.T - Element type.c - Collection used for predicate filter.true if it receives an element
that is contained in the passed in collection.public static <T> IgnitePredicate<T> notContains(@Nullable @Nullable Collection<T> c)
true if it receives an element
that is not contained in the passed in collection.T - Element type.c - Collection used for predicate filter.true if it receives an element
that is not contained in the passed in collection.public static boolean isAllNodePredicates(@Nullable
IgnitePredicate<?>... ps)
GridNodePredicate class.ps - Collection of predicates to test.True if all passed in predicates are instances of GridNodePredicate class.public static <K,V> Map<K,V> asMap(K key, V val)
K - Key's type.V - Value's type.key - Key.val - Value.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.9.0 Release Date : October 15 2020