Sho SHIMIZU

Add Javadoc

Change-Id: I14530d5f0f6f156dcd90a1d44109275ad31f3975
...@@ -143,12 +143,27 @@ public abstract class ResourcePath { ...@@ -143,12 +143,27 @@ public abstract class ResourcePath {
143 return Optional.ofNullable(parent); 143 return Optional.ofNullable(parent);
144 } 144 }
145 145
146 + /**
147 + * Returns a child resource path of this instance with specifying the child object.
148 + * The child resource path is discrete-type.
149 + *
150 + * @param child child object
151 + * @return a child resource path
152 + */
146 public ResourcePath child(Object child) { 153 public ResourcePath child(Object child) {
147 checkState(this instanceof Discrete); 154 checkState(this instanceof Discrete);
148 155
149 return new Discrete((Discrete) this, child); 156 return new Discrete((Discrete) this, child);
150 } 157 }
151 158
159 + /**
160 + * Returns a child resource path of this instance with specifying a child object and
161 + * value. The child resource path is continuous-type.
162 + *
163 + * @param child child object
164 + * @param value value
165 + * @return a child resource path
166 + */
152 public ResourcePath child(Object child, double value) { 167 public ResourcePath child(Object child, double value) {
153 checkState(this instanceof Discrete); 168 checkState(this instanceof Discrete);
154 169
......