jdk/src/share/classes/java/util/function/DoubleFunction.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 input objects to the function
    31  * @param <T> the type of input objects to the function
    32  *
    32  *
    33  * @since 1.8
    33  * @since 1.8
    34  */
    34  */
       
    35 @FunctionalInterface
    35 public interface DoubleFunction<T> {
    36 public interface DoubleFunction<T> {
    36 
    37 
    37     /**
    38     /**
    38      * Apply a function to the input object yielding an appropriate
    39      * Apply a function to the input object yielding an appropriate
    39      * {@code double} value.
    40      * {@code double} value.