@@ -135,6 +135,17 @@ public interface KeyValue {
135
135
*/
136
136
int getInt (String key );
137
137
138
+ /**
139
+ * Searches for the {@code int} property with the specified key in this {@code KeyValue} object. If the key is not
140
+ * found in this property list, the default value argument is returned.
141
+ *
142
+ * @param key the property key
143
+ * @param defaultValue a default value
144
+ * @return the value in this {@code KeyValue} object with the specified key value
145
+ * @see #put(String, int)
146
+ */
147
+ int getInt (String key , int defaultValue );
148
+
138
149
/**
139
150
* Searches for the {@code long} property with the specified key in this {@code KeyValue} object. If the key is not
140
151
* found in this property list, zero is returned.
@@ -166,6 +177,17 @@ public interface KeyValue {
166
177
*/
167
178
double getDouble (String key );
168
179
180
+ /**
181
+ * Searches for the {@code double} property with the specified key in this {@code KeyValue} object. If the key is
182
+ * not found in this property list, the default value argument is returned.
183
+ *
184
+ * @param key the property key
185
+ * @param defaultValue a default value
186
+ * @return the value in this {@code KeyValue} object with the specified key value
187
+ * @see #put(String, double)
188
+ */
189
+ double getDouble (String key , double defaultValue );
190
+
169
191
/**
170
192
* Searches for the {@code String} property with the specified key in this {@code KeyValue} object. If the key is
171
193
* not found in this property list, {@code null} is returned.
@@ -176,6 +198,17 @@ public interface KeyValue {
176
198
*/
177
199
String getString (String key );
178
200
201
+ /**
202
+ * Searches for the {@code String} property with the specified key in this {@code KeyValue} object. If the key is
203
+ * not found in this property list, the default value argument is returned.
204
+ *
205
+ * @param key the property key
206
+ * @param defaultValue a default value
207
+ * @return the value in this {@code KeyValue} object with the specified key value
208
+ * @see #put(String, String)
209
+ */
210
+ String getString (String key , String defaultValue );
211
+
179
212
/**
180
213
* Returns a {@link Set} view of the keys contained in this {@code KeyValue} object.
181
214
* <p>
0 commit comments