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, valuesequals, hashCode, toStringpublic void load(InputStream is) throws IOException
IOExceptionpublic void load(InputStream is, String encoding) throws IOException
IOExceptionpublic void store(OutputStream out) throws IOException
IOExceptionpublic void store(OutputStream out, String encoding) throws IOException
IOExceptionpublic boolean getBoolean(String key) throws IllegalArgumentException
IllegalArgumentExceptionpublic boolean getBoolean(String key, boolean defval)
public Object getClassInstance(String key) throws IllegalArgumentException
IllegalArgumentExceptionpublic Object getClassInstance(String key, Object defaultinstance) throws IllegalArgumentException
IllegalArgumentExceptionpublic double getDouble(String key) throws IllegalArgumentException
IllegalArgumentExceptionpublic double getDouble(String key, long defval) throws IllegalArgumentException
IllegalArgumentExceptionpublic void setDouble(String key, double val)
public float getFloat(String key) throws IllegalArgumentException
IllegalArgumentExceptionpublic float getFloat(String key, float defval) throws IllegalArgumentException
IllegalArgumentExceptionpublic void setFloat(String key, float val)
public int getInt(String key) throws IllegalArgumentException
IllegalArgumentExceptionpublic int getInt(String key, int defval) throws IllegalArgumentException
IllegalArgumentExceptionpublic void setInt(String key, int val)
public long getLong(String key) throws IllegalArgumentException
IllegalArgumentExceptionpublic long getLong(String key, long defval) throws IllegalArgumentException
IllegalArgumentExceptionpublic void setLong(String key, long val)
public URL getURL(String key) throws IllegalArgumentException
IllegalArgumentExceptionGuillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly