Package psidev.psi.mi.jami.model
Class ParameterValue
- java.lang.Object
-
- java.lang.Number
-
- psidev.psi.mi.jami.model.ParameterValue
-
- All Implemented Interfaces:
Serializable
public class ParameterValue extends Number
A parameter numeric value.- Since:
26/11/12
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ParameterValue(BigDecimal value)Constructor for ParameterValue.ParameterValue(BigDecimal factor, short base, short exponent)Constructor for ParameterValue.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doubledoubleValue()booleanequals(Object o)floatfloatValue()shortgetBase()Base of the parameter expression.shortgetExponent()Exponent of the base.BigDecimalgetFactor()The "main" value of the parameter.inthashCode()intintValue()longlongValue()StringtoString()toString-
Methods inherited from class java.lang.Number
byteValue, shortValue
-
-
-
-
Constructor Detail
-
ParameterValue
public ParameterValue(BigDecimal factor, short base, short exponent)
Constructor for ParameterValue.
- Parameters:
factor- aBigDecimalobject.base- a short.exponent- a short.
-
ParameterValue
public ParameterValue(BigDecimal value)
Constructor for ParameterValue.
- Parameters:
value- aBigDecimalobject.
-
-
Method Detail
-
floatValue
public float floatValue()
- Specified by:
floatValuein classNumber
-
doubleValue
public double doubleValue()
- Specified by:
doubleValuein classNumber
-
getBase
public short getBase()
Base of the parameter expression. Defaults to 10.- Returns:
- the base
-
getFactor
public BigDecimal getFactor()
The "main" value of the parameter.- Returns:
- the factor
-
getExponent
public short getExponent()
Exponent of the base. By default is 0.- Returns:
- the exponent
-
toString
public String toString()
toString
-
-