Java UnaryOperator
Introduction In Java, the UnaryOperator interface is a functional interface that represents an operation on a single operand that produces a result of the same type. It is part of the java.util.function package and is commonly used for operations that transform or modify an object of a certain type.