android.os.Bundle Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of firebase-java-sdk Show documentation
Show all versions of firebase-java-sdk Show documentation
The Firebase Java SDK is a pure java port of the Firebase Android SDK to run in clientside java environments such as the desktop.
The newest version!
package android.os;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
public class Bundle {
private final Map data;
public Bundle(Map data) {
this.data = data;
}
public Bundle(Bundle bundle) {
this.data = new HashMap<>(bundle.data);
}
public boolean containsKey(String key) {
if(data.containsKey(key)) return true;
throw new IllegalArgumentException(key);
}
public Set keySet() {
return data.keySet();
}
public boolean getBoolean(String key) {
return (Boolean)data.get(key);
}
public Object get(String key) {
containsKey(key);
return data.get(key);
}
public String getString(String key) {
containsKey(key);
return (String)data.get(key);
}
public int getInt(String key) {
return (Integer)data.get(key);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy