@@ -135,6 +135,17 @@ public interface KeyValue {
135135 */
136136 int getInt (String key );
137137
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+
138149 /**
139150 * Searches for the {@code long} property with the specified key in this {@code KeyValue} object. If the key is not
140151 * found in this property list, zero is returned.
@@ -166,6 +177,17 @@ public interface KeyValue {
166177 */
167178 double getDouble (String key );
168179
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+
169191 /**
170192 * Searches for the {@code String} property with the specified key in this {@code KeyValue} object. If the key is
171193 * not found in this property list, {@code null} is returned.
@@ -176,6 +198,17 @@ public interface KeyValue {
176198 */
177199 String getString (String key );
178200
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+
179212 /**
180213 * Returns a {@link Set} view of the keys contained in this {@code KeyValue} object.
181214 * <p>
0 commit comments