test/langtools/jdk/javadoc/doclet/testMethodTypes/pkg1/B.java
changeset 48442 3b00541635f9
parent 47216 71c04702a3d5
equal deleted inserted replaced
48441:9c37fbceb579 48442:3b00541635f9
     1 /*
     1 /*
     2  * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2012, 2018, 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.
     7  * published by the Free Software Foundation.
    22  */
    22  */
    23 
    23 
    24 package pkg1;
    24 package pkg1;
    25 
    25 
    26 /**
    26 /**
    27  * This interface has different types of methods such as "Instance Methods" and
    27  * This interface has different types of methods such as "Static Methods",
    28  * "Abstract Methods". All the tabs will display same list of methods.
    28  * "Instance Methods", "Abstract Methods", "Default Methods".
    29  */
    29  */
    30 public interface B {
    30 public interface B {
    31 
    31 
    32     /**
    32     /**
    33      * This is the first abstract instance method.
    33      * This is the first abstract instance method.
    34      */
    34      */
    35     public void setName();
    35     public void setName();
    36 
    36 
    37     /**
    37     /**
    38      * This is the second abstract instance method.
    38      * This is the second abstract instance method.
       
    39      * @return a string
    39      */
    40      */
    40     public String getName();
    41     public String getName();
    41 
    42 
    42     /**
    43     /**
    43      * This is the third abstract instance method.
    44      * This is the third abstract instance method.
       
    45      * @return a boolean value
    44      */
    46      */
    45     public boolean addEntry();
    47     public boolean addEntry();
    46 
    48 
    47     /**
    49     /**
    48      * This is the fourth abstract instance method.
    50      * This is the fourth abstract instance method.
       
    51      * @return a boolean value
    49      */
    52      */
    50     public boolean removeEntry();
    53     public boolean removeEntry();
    51 
    54 
    52     /**
    55     /**
    53      * This is the fifth abstract instance method.
    56      * This is the fifth abstract instance method.
       
    57      * @return a string
    54      */
    58      */
    55     public String getPermissions();
    59     public String getPermissions();
       
    60 
       
    61     /**
       
    62      * A static interface method.
       
    63      */
       
    64     public static void aStaticMethod() {}
       
    65 
       
    66     /**
       
    67      * Another static interface method.
       
    68      */
       
    69     public static void anotherStaticMethod() {}
       
    70 
       
    71     /**
       
    72      * A default method.
       
    73      */
       
    74     public default void aDefaultMethod() {}
       
    75 
       
    76     /**
       
    77      * Another default method.
       
    78      */
       
    79     public default void anotherDefaultMethod() {}
    56 }
    80 }