Class 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 Detail

      • ParameterValue

        public ParameterValue​(BigDecimal factor,
                              short base,
                              short exponent)

        Constructor for ParameterValue.

        Parameters:
        factor - a BigDecimal object.
        base - a short.
        exponent - a short.
      • ParameterValue

        public ParameterValue​(BigDecimal value)

        Constructor for ParameterValue.

        Parameters:
        value - a BigDecimal object.
    • Method Detail

      • intValue

        public int intValue()
        Specified by:
        intValue in class Number
      • longValue

        public long longValue()
        Specified by:
        longValue in class Number
      • floatValue

        public float floatValue()
        Specified by:
        floatValue in class Number
      • doubleValue

        public double doubleValue()
        Specified by:
        doubleValue in class Number
      • 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
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object