3535 */
3636public interface KeyValue {
3737
38+ /**
39+ * Inserts or replaces {@code boolean} value for the specified key.
40+ *
41+ * @param key the key to be placed into this {@code KeyValue} object
42+ * @param value the value corresponding to <tt>key</tt>
43+ */
44+ KeyValue put (String key , boolean value );
45+
3846 /**
3947 * Inserts or replaces {@code short} value for the specified key.
4048 *
@@ -75,6 +83,27 @@ public interface KeyValue {
7583 */
7684 KeyValue put (String key , String value );
7785
86+ /**
87+ * Searches for the {@code boolean} property with the specified key in this {@code KeyValue} object. If the key is
88+ * not found in this property list, false is returned.
89+ *
90+ * @param key the property key
91+ * @return the value in this {@code KeyValue} object with the specified key value
92+ * @see #put(String, boolean)
93+ */
94+ boolean getBoolean (String key );
95+
96+ /**
97+ * Searches for the {@code boolean} property with the specified key in this {@code KeyValue} object. If the key is
98+ * not found in this property list, false is returned.
99+ *
100+ * @param key the property key
101+ * @param defaultValue a default value
102+ * @return the value in this {@code KeyValue} object with the specified key value
103+ * @see #put(String, boolean)
104+ */
105+ boolean getBoolean (String key , boolean defaultValue );
106+
78107 /**
79108 * Searches for the {@code short} property with the specified key in this {@code KeyValue} object. If the key is not
80109 * found in this property list, zero is returned.
@@ -106,17 +135,6 @@ public interface KeyValue {
106135 */
107136 int getInt (String key );
108137
109- /**
110- * Searches for the {@code int} property with the specified key in this {@code KeyValue} object. If the key is not
111- * found in this property list, the default value argument is returned.
112- *
113- * @param key the property key
114- * @param defaultValue a default value
115- * @return the value in this {@code KeyValue} object with the specified key value
116- * @see #put(String, int)
117- */
118- int getInt (String key , int defaultValue );
119-
120138 /**
121139 * Searches for the {@code long} property with the specified key in this {@code KeyValue} object. If the key is not
122140 * found in this property list, zero is returned.
@@ -148,17 +166,6 @@ public interface KeyValue {
148166 */
149167 double getDouble (String key );
150168
151- /**
152- * Searches for the {@code double} property with the specified key in this {@code KeyValue} object. If the key is
153- * not found in this property list, the default value argument is returned.
154- *
155- * @param key the property key
156- * @param defaultValue a default value
157- * @return the value in this {@code KeyValue} object with the specified key value
158- * @see #put(String, double)
159- */
160- double getDouble (String key , double defaultValue );
161-
162169 /**
163170 * Searches for the {@code String} property with the specified key in this {@code KeyValue} object. If the key is
164171 * not found in this property list, {@code null} is returned.
@@ -169,17 +176,6 @@ public interface KeyValue {
169176 */
170177 String getString (String key );
171178
172- /**
173- * Searches for the {@code String} property with the specified key in this {@code KeyValue} object. If the key is
174- * not found in this property list, the default value argument is returned.
175- *
176- * @param key the property key
177- * @param defaultValue a default value
178- * @return the value in this {@code KeyValue} object with the specified key value
179- * @see #put(String, String)
180- */
181- String getString (String key , String defaultValue );
182-
183179 /**
184180 * Returns a {@link Set} view of the keys contained in this {@code KeyValue} object.
185181 * <p>
0 commit comments