Sho SHIMIZU
Committed by Gerrit Code Review

Use the word "id" not "key" to get the names matched

Change-Id: Ie55b62d559bccc4a4cf3a8aad1876b5ae2c22f7d
...@@ -108,9 +108,9 @@ public abstract class ResourcePath { ...@@ -108,9 +108,9 @@ public abstract class ResourcePath {
108 } 108 }
109 109
110 /** 110 /**
111 - * Creates an resource path from the specified key. 111 + * Creates an resource path from the specified id.
112 * 112 *
113 - * @param id key of the path 113 + * @param id id of the path
114 */ 114 */
115 protected ResourcePath(ResourceId id) { 115 protected ResourcePath(ResourceId id) {
116 checkNotNull(id); 116 checkNotNull(id);
...@@ -190,9 +190,9 @@ public abstract class ResourcePath { ...@@ -190,9 +190,9 @@ public abstract class ResourcePath {
190 } 190 }
191 191
192 /** 192 /**
193 - * Returns the key of this resource path. 193 + * Returns the ID of this resource path.
194 * 194 *
195 - * @return the key of this resource path 195 + * @return the ID of this resource path
196 */ 196 */
197 public ResourceId id() { 197 public ResourceId id() {
198 return id; 198 return id;
...@@ -218,7 +218,7 @@ public abstract class ResourcePath { ...@@ -218,7 +218,7 @@ public abstract class ResourcePath {
218 @Override 218 @Override
219 public String toString() { 219 public String toString() {
220 return MoreObjects.toStringHelper(this) 220 return MoreObjects.toStringHelper(this)
221 - .add("key", id) 221 + .add("id", id)
222 .toString(); 222 .toString();
223 } 223 }
224 224
...@@ -236,8 +236,8 @@ public abstract class ResourcePath { ...@@ -236,8 +236,8 @@ public abstract class ResourcePath {
236 super(); 236 super();
237 } 237 }
238 238
239 - private Discrete(ResourceId key) { 239 + private Discrete(ResourceId id) {
240 - super(key); 240 + super(id);
241 } 241 }
242 } 242 }
243 243
...@@ -252,8 +252,8 @@ public abstract class ResourcePath { ...@@ -252,8 +252,8 @@ public abstract class ResourcePath {
252 public static final class Continuous extends ResourcePath { 252 public static final class Continuous extends ResourcePath {
253 private final double value; 253 private final double value;
254 254
255 - private Continuous(ResourceId key, double value) { 255 + private Continuous(ResourceId id, double value) {
256 - super(key); 256 + super(id);
257 this.value = value; 257 this.value = value;
258 } 258 }
259 259
......