langtools/test/com/sun/javadoc/testOrdering/pkg1/ZZTop.java
changeset 25004 b33effe4f252
parent 24905 bd3cf6f243be
child 25005 645284cd7d1d
equal deleted inserted replaced
24905:bd3cf6f243be 25004:b33effe4f252
     1 /*
       
     2  * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
       
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
       
     4  *
       
     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
       
     7  * published by the Free Software Foundation.
       
     8  *
       
     9  * This code is distributed in the hope that it will be useful, but WITHOUT
       
    10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
       
    11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
       
    12  * version 2 for more details (a copy is included in the LICENSE file that
       
    13  * accompanied this code).
       
    14  *
       
    15  * You should have received a copy of the GNU General Public License version
       
    16  * 2 along with this work; if not, write to the Free Software Foundation,
       
    17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
       
    18  *
       
    19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
       
    20  * or visit www.oracle.com if you need additional information or have any
       
    21  * questions.
       
    22  */
       
    23 
       
    24 package pkg1;
       
    25 /**
       
    26  * For index testing only
       
    27  */
       
    28 public class ZZTop {
       
    29 
       
    30     /**
       
    31      * just an empty param method.
       
    32      */
       
    33     public void   add(){}
       
    34 
       
    35     /**
       
    36      * @param d param
       
    37      */
       
    38     public void   add(double d){}
       
    39 
       
    40     /**
       
    41      * @param i param
       
    42      * @param f param
       
    43      */
       
    44     public void   add(int i, float f){}
       
    45 
       
    46     /**
       
    47      * @param f param
       
    48      * @param i param
       
    49      */
       
    50     public void   add(float f, int i){}
       
    51 
       
    52     /**
       
    53      * @param d param
       
    54      * @param b param
       
    55      */
       
    56     public void   add(double d, byte b){}
       
    57 
       
    58     /**
       
    59      * @param d param
       
    60      * @return Double
       
    61      */
       
    62     public Double add(Double d) {return (double) 22/7;}
       
    63 
       
    64     /**
       
    65      * @param d1 param
       
    66      * @param d2 param
       
    67      * @return double
       
    68      */
       
    69     public double add(double d1, double d2) {return d1 + d2;}
       
    70 
       
    71     /**
       
    72      * @param d1 param
       
    73      * @param d2 param
       
    74      * @return double
       
    75      */
       
    76     public double add(double d1, Double  d2) {return d1 + d2;}
       
    77 
       
    78     /**
       
    79      * @param f param
       
    80      * @return Float
       
    81      */
       
    82     public Float  add(float f) {return (float) 22/7;}
       
    83 
       
    84     /**
       
    85      * @param i param
       
    86      */
       
    87     public void   add(int i){}
       
    88 
       
    89     /**
       
    90      * @param i param
       
    91      * @return double
       
    92      */
       
    93     public int    add(Integer i) {return 0;}
       
    94 }