|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractMap<K,V>
java.util.HashMap<java.lang.String,java.lang.String>
org.mymedialite.util.RecommenderParameters
public class RecommenderParameters
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.util.AbstractMap |
---|
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V> |
Constructor Summary | |
---|---|
RecommenderParameters(java.util.List<java.lang.String> args,
int start)
Create a CommandLineParameters object. |
|
RecommenderParameters(java.lang.String arg_string)
Create a CommandLineParameters object. |
Method Summary | |
---|---|
boolean |
checkForLeftovers()
Check for parameters that have not been processed yet. |
boolean |
GetRemoveBool(java.lang.String key)
Get the value of a boolean parameter from the collection and remove the corresponding key-value pair. |
boolean |
GetRemoveBool(java.lang.String key,
boolean dvalue)
Get the value of a boolean parameter from the collection and remove the corresponding key-value pair. |
double |
getRemoveDouble(java.lang.String key)
Get a double value from the parameters. |
double |
getRemoveDouble(java.lang.String key,
double dvalue)
Get a double value from the parameters. |
float |
getRemoveFloat(java.lang.String key)
Get a float value from the parameters. |
float |
getRemoveFloat(java.lang.String key,
float dvalue)
Get a float value from the parameters. |
int |
getRemoveInt32(java.lang.String key)
Get the value of an integer parameter from the collection and remove the corresponding key-value pair. |
int |
getRemoveInt32(java.lang.String key,
int dvalue)
Get the value of an integer parameter from the collection and remove the corresponding key-value pair. |
java.util.List<java.lang.Integer> |
getRemoveInt32List(java.lang.String key)
Get the values of an integer list parameter from the collection and remove the corresponding key-value pair. |
java.util.List<java.lang.Integer> |
getRemoveInt32List(java.lang.String key,
java.lang.String sep)
Get the values of an integer list parameter from the collection and remove the corresponding key-value pair. |
java.lang.String |
getRemoveString(java.lang.String key)
Get a string parameter. |
java.lang.String |
getRemoveString(java.lang.String key,
java.lang.String dvalue)
Get a string parameter. |
Methods inherited from class java.util.HashMap |
---|
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values |
Methods inherited from class java.util.AbstractMap |
---|
equals, hashCode, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
---|
equals, hashCode |
Constructor Detail |
---|
public RecommenderParameters(java.lang.String arg_string)
arg_string
- a string that contains the command line parameterspublic RecommenderParameters(java.util.List<java.lang.String> args, int start)
args
- a list of strings that contains the command line parametersstart
- ignore all parameters before this positionMethod Detail |
---|
public boolean checkForLeftovers()
public int getRemoveInt32(java.lang.String key)
key
- the name of the parameter
public int getRemoveInt32(java.lang.String key, int dvalue)
key
- the name of the parameterdvalue
- the default value of the parameter
public java.util.List<java.lang.Integer> getRemoveInt32List(java.lang.String key)
key
- the name of the parameter
public java.util.List<java.lang.Integer> getRemoveInt32List(java.lang.String key, java.lang.String sep)
key
- the name of the parametersep
- the separator character used to split the string representation of the list
public double getRemoveDouble(java.lang.String key)
key
- the parameter name
public double getRemoveDouble(java.lang.String key, double dvalue)
key
- the parameter namedvalue
- the default value if parameter of the given name is not found
public float getRemoveFloat(java.lang.String key)
key
- the parameter name
public float getRemoveFloat(java.lang.String key, float dvalue)
key
- the parameter namedvalue
- the default value if parameter of the given name is not found
public java.lang.String getRemoveString(java.lang.String key)
key
- the name of the parameter
public java.lang.String getRemoveString(java.lang.String key, java.lang.String dvalue)
key
- the name of the parameterdvalue
- the default value
public boolean GetRemoveBool(java.lang.String key)
key
- the name of the parameter
public boolean GetRemoveBool(java.lang.String key, boolean dvalue)
key
- the name of the parameterdvalue
- the default value of the parameter
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |