Class UtilisationResultCacheAndHelper.UtilisationComparator

  • All Implemented Interfaces:
    Comparator<org.palladiosimulator.analyzer.resultdecorator.resourceenvironmentdecorator.UtilisationResult>
    Enclosing class:
    UtilisationResultCacheAndHelper

    public static class UtilisationResultCacheAndHelper.UtilisationComparator
    extends Object
    implements Comparator<org.palladiosimulator.analyzer.resultdecorator.resourceenvironmentdecorator.UtilisationResult>
    Compares two UtilisationResults based on their resourceUtilisation. The compare method returns the same as calling Double.compare(double, double) with o1.getResourceUtilisation() and o2.getResourceUtilisation().
    • Constructor Detail

      • UtilisationComparator

        public UtilisationComparator()
    • Method Detail

      • compare

        public int compare​(org.palladiosimulator.analyzer.resultdecorator.resourceenvironmentdecorator.UtilisationResult o1,
                           org.palladiosimulator.analyzer.resultdecorator.resourceenvironmentdecorator.UtilisationResult o2)
        Specified by:
        compare in interface Comparator<org.palladiosimulator.analyzer.resultdecorator.resourceenvironmentdecorator.UtilisationResult>