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 double
doubleValue()
boolean
equals(Object o)
float
floatValue()
short
getBase()
Base of the parameter expression.short
getExponent()
Exponent of the base.BigDecimal
getFactor()
The "main" value of the parameter.int
hashCode()
int
intValue()
long
longValue()
String
toString()
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
- aBigDecimal
object.base
- a short.exponent
- a short.
-
ParameterValue
public ParameterValue(BigDecimal value)
Constructor for ParameterValue.
- Parameters:
value
- aBigDecimal
object.
-
-
Method Detail
-
floatValue
public float floatValue()
- Specified by:
floatValue
in classNumber
-
doubleValue
public double doubleValue()
- Specified by:
doubleValue
in 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
-
-