Class StoichiometryComparator

  • All Implemented Interfaces:
    Comparator<Stoichiometry>

    public class StoichiometryComparator
    extends Object
    implements Comparator<Stoichiometry>
    Simple stoichiometry comparator. It will first compare the minValue. If both minValues are the same, it will compare maxValues.
    Since:
    21/05/13
    Version:
    $Id$
    Author:
    Marine Dumousseau (marine@ebi.ac.uk)
    • Constructor Detail

      • StoichiometryComparator

        public StoichiometryComparator()
    • Method Detail

      • areEquals

        public static boolean areEquals​(Stoichiometry stc1,
                                        Stoichiometry stc2)
        Use StoichiometryComparator to know if two stoichiometry are equals.
        Parameters:
        stc1 - a Stoichiometry object.
        stc2 - a Stoichiometry object.
        Returns:
        true if the two stoichiometry are equal
      • hashCode

        public static int hashCode​(Stoichiometry stc)

        hashCode

        Parameters:
        stc - a Stoichiometry object.
        Returns:
        the hashcode consistent with the equals method for this comparator