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