Package it.unimi.dsi.fastutil.booleans
Interface BooleanUnaryOperator
-
- All Superinterfaces:
java.util.function.Function<java.lang.Boolean,java.lang.Boolean>,java.util.function.UnaryOperator<java.lang.Boolean>
- 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 BooleanUnaryOperator extends java.util.function.UnaryOperator<java.lang.Boolean>A type-specificUnaryOperator; provides methods operating both on objects and on primitives.- Since:
- 8.5.0
- See Also:
UnaryOperator
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description booleanapply(boolean x)Computes the operator on the given input.default java.lang.Booleanapply(java.lang.Boolean x)Deprecated.Please use the corresponding type-specific method instead.static BooleanUnaryOperatoridentity()Returns aUnaryOperatorthat always returns the input unmodified.static BooleanUnaryOperatornegation()Returns aUnaryOperatorthat always returns the logical negation of the input.
-
-
-
Method Detail
-
apply
boolean apply(boolean x)
Computes the operator on the given input.- Parameters:
x- the input.- Returns:
- the output of the operator on the given input.
-
identity
static BooleanUnaryOperator identity()
Returns aUnaryOperatorthat always returns the input unmodified.- See Also:
UnaryOperator.identity()
-
negation
static BooleanUnaryOperator negation()
Returns aUnaryOperatorthat always returns the logical negation of the input.
-
apply
@Deprecated default java.lang.Boolean apply(java.lang.Boolean x)
Deprecated.Please use the corresponding type-specific method instead.- Specified by:
applyin interfacejava.util.function.Function<java.lang.Boolean,java.lang.Boolean>
-
-