Interface BytePredicate

All Superinterfaces:
IntPredicate, Predicate<Byte>
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface BytePredicate extends Predicate<Byte>, IntPredicate
A type-specific 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).

Since:
8.5.0
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns a composed type-specific predicate that represents a short-circuiting logical AND of this type-specific predicate and another.
    default Predicate<Byte>
    and(Predicate<? super Byte> other)
    Deprecated.
    Please use the corresponding type-specific method instead.
     
    Returns a composed type-specific predicate that represents a short-circuiting logical OR of this type-specific predicate and another.
    default Predicate<Byte>
    or(Predicate<? super 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(int t)
    Deprecated.
    Please use the corresponding type-specific method instead.
    default boolean
    Deprecated.
    Please use the corresponding type-specific method instead.