|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.encog.util.ParamsHolder
public class ParamsHolder
A class that can be used to parse parameters stored in a map. Allows the params to be accessed as various data types and to be validated.
| Constructor Summary | |
|---|---|
ParamsHolder(Map<String,String> theParams)
Construct the object. |
|
ParamsHolder(Map<String,String> theParams,
CSVFormat theFormat)
Construct the object. |
|
| Method Summary | |
|---|---|
boolean |
getBoolean(String name,
boolean required,
boolean defaultValue)
Get a param as a boolean. |
double |
getDouble(String name,
boolean required,
double defaultValue)
Get a param as a double. |
int |
getInt(String name,
boolean required,
int defaultValue)
Get a param as a integer. |
Map<String,String> |
getParams()
|
String |
getString(String name,
boolean required,
String defaultValue)
Get a param as a string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ParamsHolder(Map<String,String> theParams,
CSVFormat theFormat)
theParams - The params to be used.theFormat - The format to be used.public ParamsHolder(Map<String,String> theParams)
theParams - The params to be used.| Method Detail |
|---|
public Map<String,String> getParams()
public String getString(String name,
boolean required,
String defaultValue)
name - The name of the string.required - True if this value is required.defaultValue - The default value.
public int getInt(String name,
boolean required,
int defaultValue)
name - The name of the integer.required - True if this value is required.defaultValue - The default value.
public double getDouble(String name,
boolean required,
double defaultValue)
name - The name of the double.required - True if this value is required.defaultValue - The default value.
public boolean getBoolean(String name,
boolean required,
boolean defaultValue)
name - The name of the double.required - True if this value is required.defaultValue - The default value.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||