public class Properties extends HashMap<String,String>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
Properties() |
Modifier and Type | Method and Description |
---|---|
String |
get(String key,
String defaultValue) |
boolean |
getBoolean(String key) |
boolean |
getBoolean(String key,
boolean defval) |
Object |
getClassInstance(String key) |
Object |
getClassInstance(String key,
Object defaultinstance) |
double |
getDouble(String key) |
double |
getDouble(String key,
long defval) |
float |
getFloat(String key) |
float |
getFloat(String key,
float defval) |
int |
getInt(String key) |
int |
getInt(String key,
int defval) |
long |
getLong(String key) |
long |
getLong(String key,
long defval) |
URL |
getURL(String key) |
void |
load(InputStream is) |
void |
load(InputStream is,
String encoding) |
void |
setDouble(String key,
double val) |
void |
setFloat(String key,
float val) |
void |
setInt(String key,
int val) |
void |
setLong(String key,
long val) |
void |
store(OutputStream out) |
void |
store(OutputStream out,
String encoding) |
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
equals, hashCode, toString
public void load(InputStream is) throws IOException
IOException
public void load(InputStream is, String encoding) throws IOException
IOException
public void store(OutputStream out) throws IOException
IOException
public void store(OutputStream out, String encoding) throws IOException
IOException
public boolean getBoolean(String key) throws IllegalArgumentException
IllegalArgumentException
public boolean getBoolean(String key, boolean defval)
public Object getClassInstance(String key) throws IllegalArgumentException
IllegalArgumentException
public Object getClassInstance(String key, Object defaultinstance) throws IllegalArgumentException
IllegalArgumentException
public double getDouble(String key) throws IllegalArgumentException
IllegalArgumentException
public double getDouble(String key, long defval) throws IllegalArgumentException
IllegalArgumentException
public void setDouble(String key, double val)
public float getFloat(String key) throws IllegalArgumentException
IllegalArgumentException
public float getFloat(String key, float defval) throws IllegalArgumentException
IllegalArgumentException
public void setFloat(String key, float val)
public int getInt(String key) throws IllegalArgumentException
IllegalArgumentException
public int getInt(String key, int defval) throws IllegalArgumentException
IllegalArgumentException
public void setInt(String key, int val)
public long getLong(String key) throws IllegalArgumentException
IllegalArgumentException
public long getLong(String key, long defval) throws IllegalArgumentException
IllegalArgumentException
public void setLong(String key, long val)
public URL getURL(String key) throws IllegalArgumentException
IllegalArgumentException
Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly