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
239 public Object get(String key) {
240 return mValues.get(key);
246 * @param key the value to get
249 public String getAsString(String key) {
250 Object value = mValues.get(key);
257 * @param key the value to get
260 public Long getAsLong(String key) {
261 Object value = mValues.get(key);
269 Log.e(TAG, "Cannot parse Long value for " + value + " at key " + key);
273 Log.e(TAG, "Cannot cast value for " + key + " to a Long: " + value, e);
282 * @param key the value to get
285 public Integer getAsInteger(String key) {
286 Object value = mValues.get(key);
294 Log.e(TAG, "Cannot parse Integer value for " + value + " at key " + key);
298 Log.e(TAG, "Cannot cast value for " + key + " to a Integer: " + value, e);
307 * @param key the value to get
310 public Short getAsShort(String key) {
311 Object value = mValues.get(key);
319 Log.e(TAG, "Cannot parse Short value for " + value + " at key " + key);
323 Log.e(TAG, "Cannot cast value for " + key + " to a Short: " + value, e);
332 * @param key the value to get
335 public Byte getAsByte(String key) {
336 Object value = mValues.get(key);
344 Log.e(TAG, "Cannot parse Byte value for " + value + " at key " + key);
348 Log.e(TAG, "Cannot cast value for " + key + " to a Byte: " + value, e);
357 * @param key the value to get
360 public Double getAsDouble(String key) {
361 Object value = mValues.get(key);
369 Log.e(TAG, "Cannot parse Double value for " + value + " at key " + key);
373 Log.e(TAG, "Cannot cast value for " + key + " to a Double: " + value, e);
382 * @param key the value to get
385 public Float getAsFloat(String key) {
386 Object value = mValues.get(key);
394 Log.e(TAG, "Cannot parse Float value for " + value + " at key " + key);
398 Log.e(TAG, "Cannot cast value for " + key + " to a Float: " + value, e);
407 * @param key the value to get
410 public Boolean getAsBoolean(String key) {
411 Object value = mValues.get(key);
420 Log.e(TAG, "Cannot cast value for " + key + " to a Boolean: " + value, e);
430 * @param key the value to get
433 public byte[] getAsByteArray(String key) {
434 Object value = mValues.get(key);
488 public void putStringArrayList(String key, ArrayList<String> value) {
489 mValues.put(key, value);
498 public ArrayList<String> getStringArrayList(String key) {
499 return (ArrayList<String>) mValues.get(key);