@FunctionalInterface
public interface FloatPredicate
extends java.util.function.Predicate<java.lang.Float>, java.util.function.DoublePredicate
Predicate; provides methods to test a primitive type both as object
and as primitive.
Except for the boolean case, this interface extends both a parameterized Predicate
and a type-specific JDK predicate (e.g., IntPredicate). For types missing
a type-specific JDK predicate (e.g., short or float), we extend the predicate associated with
the smallest primitive type that can represent the current type (e.g., int or double, respectively).
Predicate| Modifier and Type | Method and Description |
|---|---|
default FloatPredicate |
and(java.util.function.DoublePredicate other) |
default FloatPredicate |
and(FloatPredicate other)
Returns a composed type-specific predicate that represents a short-circuiting logical
AND of this type-specific predicate and another.
|
default java.util.function.Predicate<java.lang.Float> |
and(java.util.function.Predicate<? super java.lang.Float> other)
Deprecated.
Please use the corresponding type-specific method instead.
|
default FloatPredicate |
negate() |
default FloatPredicate |
or(java.util.function.DoublePredicate other) |
default FloatPredicate |
or(FloatPredicate other)
Returns a composed type-specific predicate that represents a short-circuiting logical
OR of this type-specific predicate and another.
|
default java.util.function.Predicate<java.lang.Float> |
or(java.util.function.Predicate<? super java.lang.Float> other)
Deprecated.
Please use the corresponding type-specific method instead.
|
default boolean |
test(double t)
Deprecated.
Please use the corresponding type-specific method instead.
|
boolean |
test(float t)
Evaluates this predicate on the given input.
|
default boolean |
test(java.lang.Float t)
Deprecated.
Please use the corresponding type-specific method instead.
|
boolean test(float t)
t - the input.true if the input matches the predicate,
otherwise false@Deprecated default boolean test(double t)
test in interface java.util.function.DoublePredicate@Deprecated default boolean test(java.lang.Float t)
test in interface java.util.function.Predicate<java.lang.Float>default FloatPredicate and(FloatPredicate other)
other - a predicate that will be logically-ANDed with this predicate.other predicate.Predicate.and(java.util.function.Predicate<? super T>)default FloatPredicate and(java.util.function.DoublePredicate other)
and in interface java.util.function.DoublePredicate@Deprecated default java.util.function.Predicate<java.lang.Float> and(java.util.function.Predicate<? super java.lang.Float> other)
and in interface java.util.function.Predicate<java.lang.Float>default FloatPredicate negate()
negate in interface java.util.function.DoublePredicatenegate in interface java.util.function.Predicate<java.lang.Float>default FloatPredicate or(FloatPredicate other)
other - a predicate that will be logically-ORed with this predicate.other predicate.Predicate.or(java.util.function.Predicate<? super T>)default FloatPredicate or(java.util.function.DoublePredicate other)
or in interface java.util.function.DoublePredicate@Deprecated default java.util.function.Predicate<java.lang.Float> or(java.util.function.Predicate<? super java.lang.Float> other)
or in interface java.util.function.Predicate<java.lang.Float>