|
34 | 34 | * @since OMS 1.0.0
|
35 | 35 | */
|
36 | 36 | public interface KeyValue {
|
| 37 | + |
| 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 | + |
37 | 46 | /**
|
38 | 47 | * Inserts or replaces {@code short} value for the specified key.
|
39 | 48 | *
|
@@ -74,6 +83,27 @@ public interface KeyValue {
|
74 | 83 | */
|
75 | 84 | KeyValue put(String key, String value);
|
76 | 85 |
|
| 86 | + /** |
| 87 | + * Searches for the {@code boolean} property with the specified key in this {@code KeyValue} object. If the key is not |
| 88 | + * 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 not |
| 98 | + * 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 | + |
77 | 107 | /**
|
78 | 108 | * Searches for the {@code short} property with the specified key in this {@code KeyValue} object. If the key is not
|
79 | 109 | * found in this property list, zero is returned.
|
|
0 commit comments