@FunctionalInterface
public interface BooleanUnaryOperator
extends java.util.function.UnaryOperator<java.lang.Boolean>
UnaryOperator; provides methods operating both on objects
and on primitives.UnaryOperator| Modifier and Type | Method and Description |
|---|---|
boolean |
apply(boolean x)
Computes the operator on the given input.
|
default java.lang.Boolean |
apply(java.lang.Boolean x)
Deprecated.
Please use the corresponding type-specific method instead.
|
static BooleanUnaryOperator |
identity()
Returns a
UnaryOperator that always returns the input unmodified. |
static BooleanUnaryOperator |
negation()
Returns a
UnaryOperator that always returns the logical negation of the input. |
boolean apply(boolean x)
x - the input.static BooleanUnaryOperator identity()
UnaryOperator that always returns the input unmodified.identity in interface java.util.function.Function<java.lang.Boolean,java.lang.Boolean>identity in interface java.util.function.UnaryOperator<java.lang.Boolean>UnaryOperator.identity()static BooleanUnaryOperator negation()
UnaryOperator that always returns the logical negation of the input.@Deprecated default java.lang.Boolean apply(java.lang.Boolean x)
apply in interface java.util.function.Function<java.lang.Boolean,java.lang.Boolean>