author | ksrini |
Wed, 03 Jan 2018 15:16:46 -0800 | |
changeset 48432 | db09f53aba91 |
parent 47216 | 71c04702a3d5 |
permissions | -rw-r--r-- |
14549
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
1 |
/* |
48432
db09f53aba91
8193671: Default Methods tab under Method Summary includes static methods
ksrini
parents:
47216
diff
changeset
|
2 |
* Copyright (c) 2012, 2018, Oracle and/or its affiliates. All rights reserved. |
14549
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
4 |
* |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
5 |
* This code is free software; you can redistribute it and/or modify it |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
7 |
* published by the Free Software Foundation. |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
8 |
* |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
9 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
10 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
11 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
12 |
* version 2 for more details (a copy is included in the LICENSE file that |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
13 |
* accompanied this code). |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
14 |
* |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
15 |
* You should have received a copy of the GNU General Public License version |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
16 |
* 2 along with this work; if not, write to the Free Software Foundation, |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
17 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
18 |
* |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
19 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
20 |
* or visit www.oracle.com if you need additional information or have any |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
21 |
* questions. |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
22 |
*/ |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
23 |
|
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
24 |
package pkg1; |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
25 |
|
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
26 |
/** |
48432
db09f53aba91
8193671: Default Methods tab under Method Summary includes static methods
ksrini
parents:
47216
diff
changeset
|
27 |
* This interface has different types of methods such as "Static Methods", |
db09f53aba91
8193671: Default Methods tab under Method Summary includes static methods
ksrini
parents:
47216
diff
changeset
|
28 |
* "Instance Methods", "Abstract Methods", "Default Methods". |
14549
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
29 |
*/ |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
30 |
public interface B { |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
31 |
|
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
32 |
/** |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
33 |
* This is the first abstract instance method. |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
34 |
*/ |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
35 |
public void setName(); |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
36 |
|
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
37 |
/** |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
38 |
* This is the second abstract instance method. |
48432
db09f53aba91
8193671: Default Methods tab under Method Summary includes static methods
ksrini
parents:
47216
diff
changeset
|
39 |
* @return a string |
14549
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
40 |
*/ |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
41 |
public String getName(); |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
42 |
|
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
43 |
/** |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
44 |
* This is the third abstract instance method. |
48432
db09f53aba91
8193671: Default Methods tab under Method Summary includes static methods
ksrini
parents:
47216
diff
changeset
|
45 |
* @return a boolean value |
14549
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
46 |
*/ |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
47 |
public boolean addEntry(); |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
48 |
|
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
49 |
/** |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
50 |
* This is the fourth abstract instance method. |
48432
db09f53aba91
8193671: Default Methods tab under Method Summary includes static methods
ksrini
parents:
47216
diff
changeset
|
51 |
* @return a boolean value |
14549
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
52 |
*/ |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
53 |
public boolean removeEntry(); |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
54 |
|
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
55 |
/** |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
56 |
* This is the fifth abstract instance method. |
48432
db09f53aba91
8193671: Default Methods tab under Method Summary includes static methods
ksrini
parents:
47216
diff
changeset
|
57 |
* @return a string |
14549
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
58 |
*/ |
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
59 |
public String getPermissions(); |
48432
db09f53aba91
8193671: Default Methods tab under Method Summary includes static methods
ksrini
parents:
47216
diff
changeset
|
60 |
|
db09f53aba91
8193671: Default Methods tab under Method Summary includes static methods
ksrini
parents:
47216
diff
changeset
|
61 |
/** |
db09f53aba91
8193671: Default Methods tab under Method Summary includes static methods
ksrini
parents:
47216
diff
changeset
|
62 |
* A static interface method. |
db09f53aba91
8193671: Default Methods tab under Method Summary includes static methods
ksrini
parents:
47216
diff
changeset
|
63 |
*/ |
db09f53aba91
8193671: Default Methods tab under Method Summary includes static methods
ksrini
parents:
47216
diff
changeset
|
64 |
public static void aStaticMethod() {} |
db09f53aba91
8193671: Default Methods tab under Method Summary includes static methods
ksrini
parents:
47216
diff
changeset
|
65 |
|
db09f53aba91
8193671: Default Methods tab under Method Summary includes static methods
ksrini
parents:
47216
diff
changeset
|
66 |
/** |
db09f53aba91
8193671: Default Methods tab under Method Summary includes static methods
ksrini
parents:
47216
diff
changeset
|
67 |
* Another static interface method. |
db09f53aba91
8193671: Default Methods tab under Method Summary includes static methods
ksrini
parents:
47216
diff
changeset
|
68 |
*/ |
db09f53aba91
8193671: Default Methods tab under Method Summary includes static methods
ksrini
parents:
47216
diff
changeset
|
69 |
public static void anotherStaticMethod() {} |
db09f53aba91
8193671: Default Methods tab under Method Summary includes static methods
ksrini
parents:
47216
diff
changeset
|
70 |
|
db09f53aba91
8193671: Default Methods tab under Method Summary includes static methods
ksrini
parents:
47216
diff
changeset
|
71 |
/** |
db09f53aba91
8193671: Default Methods tab under Method Summary includes static methods
ksrini
parents:
47216
diff
changeset
|
72 |
* A default method. |
db09f53aba91
8193671: Default Methods tab under Method Summary includes static methods
ksrini
parents:
47216
diff
changeset
|
73 |
*/ |
db09f53aba91
8193671: Default Methods tab under Method Summary includes static methods
ksrini
parents:
47216
diff
changeset
|
74 |
public default void aDefaultMethod() {} |
db09f53aba91
8193671: Default Methods tab under Method Summary includes static methods
ksrini
parents:
47216
diff
changeset
|
75 |
|
db09f53aba91
8193671: Default Methods tab under Method Summary includes static methods
ksrini
parents:
47216
diff
changeset
|
76 |
/** |
db09f53aba91
8193671: Default Methods tab under Method Summary includes static methods
ksrini
parents:
47216
diff
changeset
|
77 |
* Another default method. |
db09f53aba91
8193671: Default Methods tab under Method Summary includes static methods
ksrini
parents:
47216
diff
changeset
|
78 |
*/ |
db09f53aba91
8193671: Default Methods tab under Method Summary includes static methods
ksrini
parents:
47216
diff
changeset
|
79 |
public default void anotherDefaultMethod() {} |
14549
0599d73bf1da
8002304: Group methods by types in methods summary section
bpatel
parents:
diff
changeset
|
80 |
} |