Class Parameter
java.lang.Object
fr.ens.biologie.genomique.eoulsan.core.Parameter
- All Implemented Interfaces:
Serializable,Comparable<Parameter>
This class define a parameter. The parameter name is always in lower case.
- Since:
- 1.0
- Author:
- Laurent Jourdren
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbooleanbooleanGet the value of the parameter as a boolean value.doubleGet the value of the parameter as a double value.intGet the value of the parameter as a integer value.intgetIntValueGreaterOrEqualsTo(int min) * Get the value of the parameter as a integer value and check if this value is greater or equals to the min parameter value.intgetIntValueInRange(int min, int max) Get the value of the parameter as a integer value and check if this value is in the correct range.Get the value of the parameter as a lower case String value.getName()Get the name of the parameter.Get the value of the parameter as a String value.Get the value of the parameter as a upper case String value.getValue()Get the value of the parameter.inthashCode()toString()
-
Constructor Details
-
Parameter
Public constructor.- Parameters:
name- Name of the parametervalue- value of the parameter
-
-
Method Details
-
getName
Get the name of the parameter.- Returns:
- Returns the name
-
getValue
Get the value of the parameter.- Returns:
- Returns the value
-
getStringValue
Get the value of the parameter as a String value.- Returns:
- the value as a String
-
getLowerStringValue
Get the value of the parameter as a lower case String value.- Returns:
- the value as a String
-
getUpperStringValue
Get the value of the parameter as a upper case String value.- Returns:
- the value as a String
-
getIntValue
Get the value of the parameter as a integer value.- Returns:
- the value as an integer
- Throws:
EoulsanException- if the parameter if not an integer
-
getIntValueGreaterOrEqualsTo
* Get the value of the parameter as a integer value and check if this value is greater or equals to the min parameter value.- Parameters:
min- minimal value (included)- Returns:
- the value as an integer
- Throws:
EoulsanException- if the parameter if not in the range
-
getIntValueInRange
Get the value of the parameter as a integer value and check if this value is in the correct range.- Parameters:
min- minimal value (included)max- maximal value (included)- Returns:
- the value as an integer
- Throws:
EoulsanException- if the parameter if not in the range
-
getDoubleValue
Get the value of the parameter as a double value.- Returns:
- the value as an integer
- Throws:
EoulsanException- if the parameter if not a double
-
getBooleanValue
public boolean getBooleanValue()Get the value of the parameter as a boolean value.- Returns:
- the value as a boolean
-
toString
-
hashCode
public int hashCode() -
equals
-
compareTo
- Specified by:
compareToin interfaceComparable<Parameter>
-