Cosmetics: Rearrange the method definitino order
Change-Id: I978ea1cdf04ad0f4984de35a509b2020378d1c2c
Showing
1 changed file
with
15 additions
and
15 deletions
... | @@ -41,6 +41,13 @@ public interface Resource { | ... | @@ -41,6 +41,13 @@ public interface Resource { |
41 | DiscreteResource ROOT = new DiscreteResource(); | 41 | DiscreteResource ROOT = new DiscreteResource(); |
42 | 42 | ||
43 | /** | 43 | /** |
44 | + * Returns the ID of this resource. | ||
45 | + * | ||
46 | + * @return the ID of this resource | ||
47 | + */ | ||
48 | + ResourceId id(); | ||
49 | + | ||
50 | + /** | ||
44 | * Checks if the type of this instance is the specified type. | 51 | * Checks if the type of this instance is the specified type. |
45 | * | 52 | * |
46 | * @param ancestorType type of resource to be checked. | 53 | * @param ancestorType type of resource to be checked. |
... | @@ -59,6 +66,14 @@ public interface Resource { | ... | @@ -59,6 +66,14 @@ public interface Resource { |
59 | <T> T volume(); | 66 | <T> T volume(); |
60 | 67 | ||
61 | /** | 68 | /** |
69 | + * Returns the last component of this instance. | ||
70 | + * | ||
71 | + * @return the last component of this instance. | ||
72 | + * The return value is equal to the last object of {@code components()}. | ||
73 | + */ | ||
74 | + Object last(); | ||
75 | + | ||
76 | + /** | ||
62 | * Returns the parent resource of this instance. | 77 | * Returns the parent resource of this instance. |
63 | * E.g. if this resource is Link:1/VLAN ID:100, the return value is the resource for Link:1. | 78 | * E.g. if this resource is Link:1/VLAN ID:100, the return value is the resource for Link:1. |
64 | * | 79 | * |
... | @@ -89,19 +104,4 @@ public interface Resource { | ... | @@ -89,19 +104,4 @@ public interface Resource { |
89 | * @return a child resource | 104 | * @return a child resource |
90 | */ | 105 | */ |
91 | ContinuousResource child(Class<?> child, double value); | 106 | ContinuousResource child(Class<?> child, double value); |
92 | - | ||
93 | - /** | ||
94 | - * Returns the last component of this instance. | ||
95 | - * | ||
96 | - * @return the last component of this instance. | ||
97 | - * The return value is equal to the last object of {@code components()}. | ||
98 | - */ | ||
99 | - Object last(); | ||
100 | - | ||
101 | - /** | ||
102 | - * Returns the ID of this resource. | ||
103 | - * | ||
104 | - * @return the ID of this resource | ||
105 | - */ | ||
106 | - ResourceId id(); | ||
107 | } | 107 | } | ... | ... |
-
Please register or login to post a comment