@FunctionalInterface
public interface BytePredicate
extends java.util.function.Predicate<java.lang.Byte>, java.util.function.IntPredicate
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 BytePredicate |
and(BytePredicate other)
Returns a composed type-specific predicate that represents a short-circuiting logical
AND of this type-specific predicate and another.
|
default BytePredicate |
and(java.util.function.IntPredicate other) |
default java.util.function.Predicate<java.lang.Byte> |
and(java.util.function.Predicate<? super java.lang.Byte> other)
Deprecated.
Please use the corresponding type-specific method instead.
|
default BytePredicate |
negate() |
default BytePredicate |
or(BytePredicate other)
Returns a composed type-specific predicate that represents a short-circuiting logical
OR of this type-specific predicate and another.
|
default BytePredicate |
or(java.util.function.IntPredicate other) |
default java.util.function.Predicate<java.lang.Byte> |
or(java.util.function.Predicate<? super java.lang.Byte> other)
Deprecated.
Please use the corresponding type-specific method instead.
|
boolean |
test(byte t)
Evaluates this predicate on the given input.
|
default boolean |
test(java.lang.Byte t)
Deprecated.
Please use the corresponding type-specific method instead.
|
default boolean |
test(int t)
Deprecated.
Please use the corresponding type-specific method instead.
|
boolean test(byte t)
t - the input.true if the input matches the predicate,
otherwise false@Deprecated default boolean test(int t)
test in interface java.util.function.IntPredicate@Deprecated default boolean test(java.lang.Byte t)
test in interface java.util.function.Predicate<java.lang.Byte>default BytePredicate and(BytePredicate other)
other - a predicate that will be logically-ANDed with this predicate.other predicate.Predicate.and(java.util.function.Predicate<? super T>)default BytePredicate and(java.util.function.IntPredicate other)
and in interface java.util.function.IntPredicate@Deprecated default java.util.function.Predicate<java.lang.Byte> and(java.util.function.Predicate<? super java.lang.Byte> other)
and in interface java.util.function.Predicate<java.lang.Byte>default BytePredicate negate()
negate in interface java.util.function.IntPredicatenegate in interface java.util.function.Predicate<java.lang.Byte>default BytePredicate or(BytePredicate other)
other - a predicate that will be logically-ORed with this predicate.other predicate.Predicate.or(java.util.function.Predicate<? super T>)default BytePredicate or(java.util.function.IntPredicate other)
or in interface java.util.function.IntPredicate@Deprecated default java.util.function.Predicate<java.lang.Byte> or(java.util.function.Predicate<? super java.lang.Byte> other)
or in interface java.util.function.Predicate<java.lang.Byte>