Lines Matching refs:key

92      * @param key the name of the value to put
95 public void put(String key, String value) {
96 mValues.put(key, value);
111 * @param key the name of the value to put
114 public void put(String key, Byte value) {
115 mValues.put(key, value);
121 * @param key the name of the value to put
124 public void put(String key, Short value) {
125 mValues.put(key, value);
131 * @param key the name of the value to put
134 public void put(String key, Integer value) {
135 mValues.put(key, value);
141 * @param key the name of the value to put
144 public void put(String key, Long value) {
145 mValues.put(key, value);
151 * @param key the name of the value to put
154 public void put(String key, Float value) {
155 mValues.put(key, value);
161 * @param key the name of the value to put
164 public void put(String key, Double value) {
165 mValues.put(key, value);
171 * @param key the name of the value to put
174 public void put(String key, Boolean value) {
175 mValues.put(key, value);
181 * @param key the name of the value to put
184 public void put(String key, byte[] value) {
185 mValues.put(key, value);
191 * @param key the name of the value to make null
193 public void putNull(String key) {
194 mValues.put(key, null);
209 * @param key the name of the value to remove
211 public void remove(String key) {
212 mValues.remove(key);
225 * @param key the value to check for
228 public boolean containsKey(String key) {
229 return mValues.containsKey(key);
236 * @param key the value to get
238 * was previously added with the given {@code key}
240 public Object get(String key) {
241 return mValues.get(key);
247 * @param key the value to get
250 public String getAsString(String key) {
251 Object value = mValues.get(key);
258 * @param key the value to get
261 public Long getAsLong(String key) {
262 Object value = mValues.get(key);
270 Log.e(TAG, "Cannot parse Long value for " + value + " at key " + key);
274 Log.e(TAG, "Cannot cast value for " + key + " to a Long: " + value, e);
283 * @param key the value to get
286 public Integer getAsInteger(String key) {
287 Object value = mValues.get(key);
295 Log.e(TAG, "Cannot parse Integer value for " + value + " at key " + key);
299 Log.e(TAG, "Cannot cast value for " + key + " to a Integer: " + value, e);
308 * @param key the value to get
311 public Short getAsShort(String key) {
312 Object value = mValues.get(key);
320 Log.e(TAG, "Cannot parse Short value for " + value + " at key " + key);
324 Log.e(TAG, "Cannot cast value for " + key + " to a Short: " + value, e);
333 * @param key the value to get
336 public Byte getAsByte(String key) {
337 Object value = mValues.get(key);
345 Log.e(TAG, "Cannot parse Byte value for " + value + " at key " + key);
349 Log.e(TAG, "Cannot cast value for " + key + " to a Byte: " + value, e);
358 * @param key the value to get
361 public Double getAsDouble(String key) {
362 Object value = mValues.get(key);
370 Log.e(TAG, "Cannot parse Double value for " + value + " at key " + key);
374 Log.e(TAG, "Cannot cast value for " + key + " to a Double: " + value, e);
383 * @param key the value to get
386 public Float getAsFloat(String key) {
387 Object value = mValues.get(key);
395 Log.e(TAG, "Cannot parse Float value for " + value + " at key " + key);
399 Log.e(TAG, "Cannot cast value for " + key + " to a Float: " + value, e);
408 * @param key the value to get
411 public Boolean getAsBoolean(String key) {
412 Object value = mValues.get(key);
421 Log.e(TAG, "Cannot cast value for " + key + " to a Boolean: " + value, e);
431 * @param key the value to get
435 public byte[] getAsByteArray(String key) {
436 Object value = mValues.get(key);
490 public void putStringArrayList(String key, ArrayList<String> value) {
491 mValues.put(key, value);
500 public ArrayList<String> getStringArrayList(String key) {
501 return (ArrayList<String>) mValues.get(key);