|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Dictionary<K,V>
java.util.Hashtable<java.lang.Object,java.lang.Object>
java.util.Properties
uk.me.parabola.util.EnhancedProperties
public class EnhancedProperties
Wrapper that behaves as an enhanced properties class that has getProperty calls for different data types.
Field Summary |
---|
Fields inherited from class java.util.Properties |
---|
defaults |
Constructor Summary | |
---|---|
EnhancedProperties()
|
|
EnhancedProperties(java.util.Properties defaults)
|
Method Summary | |
---|---|
boolean |
getProperty(java.lang.String key,
boolean def)
Get a property as a boolean value. |
double |
getProperty(java.lang.String key,
double def)
Return a property as a double value. |
int |
getProperty(java.lang.String key,
int def)
Get a property as an integer value. |
Methods inherited from class java.util.Properties |
---|
getProperty, getProperty, list, list, load, load, loadFromXML, propertyNames, save, setProperty, store, store, storeToXML, storeToXML, stringPropertyNames |
Methods inherited from class java.util.Hashtable |
---|
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public EnhancedProperties()
public EnhancedProperties(java.util.Properties defaults)
Method Detail |
---|
public int getProperty(java.lang.String key, int def)
key
- The property name to retrieve.def
- The Default value to use if the property does not exist or
if the value is not a valid integer.
public boolean getProperty(java.lang.String key, boolean def)
key
- The property name to get.def
- The default value that is returned if property does not
exist.
public double getProperty(java.lang.String key, double def)
key
- The property name.def
- The default value to return if no valid value.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |