## Uses of Interface
java.util.function.UnaryOperator

- Packages that use UnaryOperator
  Package | Description
  --- | ---
  java.util |
  java.util.function |

- - ### Uses of UnaryOperator in java.util

    Methods in java.util with parameters of type UnaryOperator
    Modifier and Type | Method and Description
    --- | ---
    `default void` | List.`replaceAll(UnaryOperator<E> operator)` Replaces each element of this list with the result of applying the operator to that element.

  - ### Uses of UnaryOperator in java.util.function

    Methods in java.util.function that return UnaryOperator
    Modifier and Type | Method and Description
    --- | ---
    `static <T> UnaryOperator<T>` | UnaryOperator.`identity()` Returns a unary operator that always returns its input argument.

Copyright © 2025 API Design. All Rights Reserved.