@FunctionalInterface
public interface ByteUnaryOperator
extends java.util.function.UnaryOperator<java.lang.Byte>, java.util.function.IntUnaryOperator
UnaryOperator; provides methods operating both on objects
and on primitives.UnaryOperator| Modifier and Type | Method and Description |
|---|---|
byte |
apply(byte x)
Computes the operator on the given input.
|
default java.lang.Byte |
apply(java.lang.Byte x)
Deprecated.
Please use the corresponding type-specific method instead.
|
default int |
applyAsInt(int x)
Deprecated.
Please use
apply(byte). |
static ByteUnaryOperator |
identity()
Returns a
UnaryOperator that always returns the input unmodified. |
static ByteUnaryOperator |
negation()
Returns a
UnaryOperator that always returns the arithmetic negation of the input. |
byte apply(byte x)
x - the input.static ByteUnaryOperator identity()
UnaryOperator that always returns the input unmodified.identity in interface java.util.function.Function<java.lang.Byte,java.lang.Byte>identity in interface java.util.function.IntUnaryOperatoridentity in interface java.util.function.UnaryOperator<java.lang.Byte>UnaryOperator.identity()static ByteUnaryOperator negation()
UnaryOperator that always returns the arithmetic negation of the input.@Deprecated default int applyAsInt(int x)
apply(byte).applyAsInt in interface java.util.function.IntUnaryOperatorjava.lang.IllegalArgumentException - If the given operands are not an element of the key domain.@Deprecated default java.lang.Byte apply(java.lang.Byte x)
apply in interface java.util.function.Function<java.lang.Byte,java.lang.Byte>