Class DefaultParameterComparator


  • public class DefaultParameterComparator
    extends Object
    Default parameter comparator. - Two parameters which are null are equals - The parameter which is not null is before null. - Use DefaultCvTermComparator to compare first the parameter types. - If parameter types are equals, use DefaultCvTermComparator to compare the units. - If the units are not set, compares the values - If both units are set and If they are equals, compares the values (case sensitive) - If both values are equals, compares the uncertainty.
    Since:
    19/12/12
    Version:
    $Id$
    Author:
    Marine Dumousseau (marine@ebi.ac.uk)
    • Constructor Detail

      • DefaultParameterComparator

        public DefaultParameterComparator()
    • Method Detail

      • areEquals

        public static boolean areEquals​(Parameter parameter1,
                                        Parameter parameter2)
        Use DefaultComparator to know if two parameters are equals.
        Parameters:
        parameter1 - a Parameter object.
        parameter2 - a Parameter object.
        Returns:
        true if the two parameters are equal