jdk/src/share/classes/java/util/function/LongUnaryOperator.java
changeset 16011 890a7ed97f6c
parent 15647 314007859004
child 17695 032254f2467b
equal deleted inserted replaced
16010:2727163b5df5 16011:890a7ed97f6c
    24  */
    24  */
    25 package java.util.function;
    25 package java.util.function;
    26 
    26 
    27 /**
    27 /**
    28  * An operation on a single {@code long} operand yielding a {@code long} result.
    28  * An operation on a single {@code long} operand yielding a {@code long} result.
       
    29  * This is the primitive type specialization of {@link UnaryOperator} for
       
    30  * {@code long}.
    29  *
    31  *
       
    32  * @see UnaryOperator
    30  * @since 1.8
    33  * @since 1.8
    31  */
    34  */
    32 @FunctionalInterface
    35 @FunctionalInterface
    33 public interface LongUnaryOperator {
    36 public interface LongUnaryOperator {
    34 
    37 
    37      * operand.
    40      * operand.
    38      *
    41      *
    39      * @param operand the operand value
    42      * @param operand the operand value
    40      * @return the operation result value
    43      * @return the operation result value
    41      */
    44      */
    42     public long operateAsLong(long operand);
    45     public long applyAsLong(long operand);
    43 }
    46 }