jdk/src/share/classes/java/util/function/UnaryOperator.java
changeset 15647 314007859004
parent 14670 964ac9f1463c
child 16011 890a7ed97f6c
equal deleted inserted replaced
15646:b065aeb8e26b 15647:314007859004
     1 /*
     1 /*
     2  * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    30  *
    30  *
    31  * @param <T> the type of operand to {@code operate} and of the result
    31  * @param <T> the type of operand to {@code operate} and of the result
    32  *
    32  *
    33  * @since 1.8
    33  * @since 1.8
    34  */
    34  */
       
    35 @FunctionalInterface
    35 public interface UnaryOperator<T> {
    36 public interface UnaryOperator<T> {
    36 
    37 
    37     /**
    38     /**
    38      * Returns the result of the operation upon the operand.
    39      * Returns the result of the operation upon the operand.
    39      *
    40      *