public class ServiceProperty extends Object
构造器和说明 |
---|
ServiceProperty(String name) |
限定符和类型 | 方法和说明 |
---|---|
boolean |
getBoolean(String key) |
boolean |
getBoolean(String key,
boolean defaultValue) |
double |
getDouble(String key) |
double |
getDouble(String key,
double defaultValue) |
float |
getFloat(String key) |
float |
getFloat(String key,
float defaultValue) |
int |
getInt(String key) |
int |
getInt(String key,
int defaultValue) |
long |
getLong(String key) |
long |
getLong(String key,
long defaultValue) |
String |
getName() |
String |
getString(String key) |
String |
getString(String key,
String defaultValue) |
void |
putBoolean(String key,
boolean value) |
void |
putDouble(String key,
double value) |
void |
putFloat(String key,
Float value) |
void |
putInt(String key,
int value) |
void |
putLong(String key,
Long value) |
void |
putString(String key,
String value) |
String |
toString() |
public ServiceProperty(String name)
public String getName()
public void putInt(String key, int value)
public int getInt(String key)
public int getInt(String key, int defaultValue)
public void putDouble(String key, double value)
public double getDouble(String key)
public double getDouble(String key, double defaultValue)
public void putBoolean(String key, boolean value)
public boolean getBoolean(String key)
public boolean getBoolean(String key, boolean defaultValue)
public long getLong(String key)
public long getLong(String key, long defaultValue)
public float getFloat(String key)
public float getFloat(String key, float defaultValue)