Sha256: 27cbadddfc4661bc1af166baa503b1c7f490dd3715702601be267226d42ec34a

Contents?: true

Size: 957 Bytes

Versions: 43

Compression:

Stored size: 957 Bytes

Contents

package com.rhomobile.rhodes.mapview;



import java.util.HashMap;
import java.util.Map;

public class ExtrasHolder {
	
		public ExtrasHolder() {
			mHash = new HashMap<String, String>();
		}
		
		public void clear() {
			mHash.clear();
		}
		
		public String getString(String key) {
			return mHash.get(key);
		}
		
		public boolean getBoolean(String key) {
			String value = getString(key);
			if (value == null) {
				return false;
			}
			return Boolean.parseBoolean(value);
		}
		
		public int getInt(String key) {
			String value = getString(key);
			if (value == null) {
				return 0;
			}
			return Integer.parseInt(value);
		}

		public void putExtra(String key, String value) {
			mHash.put(key, value);
		}
		
		public void putExtra(String key, boolean value) {
			mHash.put(key, String.valueOf(value));
		}
		
		public void putExtra(String key, int value) {
			mHash.put(key, String.valueOf(value));
		}

		private	Map<String, String> mHash;
	}

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
rhodes-3.1.0.beta.3 platform/android/Rhodes/src/com/rhomobile/rhodes/mapview/ExtrasHolder.java
rhodes-3.1.0.beta.2 platform/android/Rhodes/src/com/rhomobile/rhodes/mapview/ExtrasHolder.java
rhodes-3.1.0.beta.1 platform/android/Rhodes/src/com/rhomobile/rhodes/mapview/ExtrasHolder.java