Rio Project 4.2 API Documentation



org.rioproject.monitor
Class ResourceCostSelector.CostComparator

java.lang.Object
  extended by org.rioproject.monitor.ResourceCostSelector.CostComparator
All Implemented Interfaces:
Comparator
Enclosing class:
ResourceCostSelector

public static class ResourceCostSelector.CostComparator
extends Object
implements Comparator

The CostComparator is a Comparator which sorts the Collection based on the Comparable implementation of the ResourceCapability


Constructor Summary
ResourceCostSelector.CostComparator()
           
 
Method Summary
 int compare(Object o1, Object o2)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

ResourceCostSelector.CostComparator

public ResourceCostSelector.CostComparator()
Method Detail

compare

public int compare(Object o1,
                   Object o2)
Specified by:
compare in interface Comparator

Copyright © Rio Project.

Copyright © 2006-2011 Rio Project. All Rights Reserved.