org.encog.util
public class ParamsHolder extends Object
| Constructor and Description |
|---|
ParamsHolder(Map<String,String> theParams)
Construct the object.
|
ParamsHolder(Map<String,String> theParams,
CSVFormat theFormat)
Construct the object.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public ParamsHolder(Map<String,String> theParams, CSVFormat theFormat)
theParams - The params to be used.theFormat - The format to be used.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.Copyright © 2014. All Rights Reserved.