src/share/classes/java/util/function/UnaryOperator.java
Print this page
rev 6273 : 8004561: Additional functional interfaces, extension methods and name changes
Summary: Adds additional functional interfaces for primitives and "Bi" (two operand). Adds utility extension methods. Includes some name changes for existing functional interfaces per EG decisions.
Reviewed-by: briangoetz
*** 30,44 ****
*
* @param <T> the type of operand to {@code operate} and of the result
*
* @since 1.8
*/
! public interface UnaryOperator<T> {
!
! /**
! * Returns the result of the operation upon the operand.
! *
! * @param operand the operand
! * @return the operation result
! */
! public T operate(T operand);
}
--- 30,36 ----
*
* @param <T> the type of operand to {@code operate} and of the result
*
* @since 1.8
*/
! public interface UnaryOperator<T> extends Function<T, T> {
}