Class DefaultStoichiometry

  • All Implemented Interfaces:
    Stoichiometry
    Direct Known Subclasses:
    MitabStoichiometry, XmlStoichiometry

    public class DefaultStoichiometry
    extends Object
    implements Stoichiometry
    Default implementation for stoichiometry Notes: The equals and hashcode methods have been overridden to be consistent with StoichiometryComparator
    Since:
    21/05/13
    Version:
    $Id$
    Author:
    Marine Dumousseau (marine@ebi.ac.uk)
    • Constructor Detail

      • DefaultStoichiometry

        public DefaultStoichiometry()
      • DefaultStoichiometry

        public DefaultStoichiometry​(int value)

        Constructor for DefaultStoichiometry.

        Parameters:
        value - a int.
      • DefaultStoichiometry

        public DefaultStoichiometry​(int minValue,
                                    int maxValue)

        Constructor for DefaultStoichiometry.

        Parameters:
        minValue - a int.
        maxValue - a int.
    • Method Detail

      • getMinValue

        public int getMinValue()

        Getter for the field minValue.

        Specified by:
        getMinValue in interface Stoichiometry
        Returns:
        a int.
      • getMaxValue

        public int getMaxValue()

        Getter for the field maxValue.

        Specified by:
        getMaxValue in interface Stoichiometry
        Returns:
        a int.
      • setMinValue

        public void setMinValue​(int minValue)
      • setMaxValue

        public void setMaxValue​(int maxValue)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object