# Print output for @column tags ?> UnaryOperator - Android SDK | Android Developers

Most visited


Recently visited


UnaryOperator

public interface UnaryOperator
implements Function<T, T>

java.util.function.UnaryOperator<T>


Represents an operation on a single operand that produces a result of the same type as its operand. This is a specialization of Function for the case where the operand and result are of the same type.

This is a functional interface whose functional method is Function.apply(java.lang.Object).

See also:

Summary


Public methods

static <T> UnaryOperator<T> identity()

Returns a unary operator that always returns its input argument.

Inherited methods

Public methods


identity

public static UnaryOperator<T> identity ()

Returns a unary operator that always returns its input argument.

Returns
UnaryOperator<T> a unary operator that always returns its input argument

Browse this site in English?

You requested a page in English, but your language preference for this site is English.

Would you like to change your language preference and browse this site in English? If you want to change your language preference later, use the language menu at the bottom of each page.