Sho SHIMIZU

Cosmetics: Rearrange the method definitino order

Change-Id: I978ea1cdf04ad0f4984de35a509b2020378d1c2c
......@@ -41,6 +41,13 @@ public interface Resource {
DiscreteResource ROOT = new DiscreteResource();
/**
* Returns the ID of this resource.
*
* @return the ID of this resource
*/
ResourceId id();
/**
* Checks if the type of this instance is the specified type.
*
* @param ancestorType type of resource to be checked.
......@@ -59,6 +66,14 @@ public interface Resource {
<T> T volume();
/**
* Returns the last component of this instance.
*
* @return the last component of this instance.
* The return value is equal to the last object of {@code components()}.
*/
Object last();
/**
* Returns the parent resource of this instance.
* E.g. if this resource is Link:1/VLAN ID:100, the return value is the resource for Link:1.
*
......@@ -89,19 +104,4 @@ public interface Resource {
* @return a child resource
*/
ContinuousResource child(Class<?> child, double value);
/**
* Returns the last component of this instance.
*
* @return the last component of this instance.
* The return value is equal to the last object of {@code components()}.
*/
Object last();
/**
* Returns the ID of this resource.
*
* @return the ID of this resource
*/
ResourceId id();
}
......