com.buglabs.osgi.obr
Class SortableResourceContainer
java.lang.Object
com.buglabs.osgi.obr.SortableResourceContainer
- All Implemented Interfaces:
- java.lang.Comparable
public class SortableResourceContainer
- extends java.lang.Object
- implements java.lang.Comparable
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SortableResourceContainer
public SortableResourceContainer(org.osgi.service.obr.Resource res,
org.osgi.framework.BundleContext c)
getResource
public org.osgi.service.obr.Resource getResource()
getSize
public int getSize()
getSatisfiedCount
public int getSatisfiedCount()
getCost
public int getCost()
incrementRequirementCount
public void incrementRequirementCount()
compareTo
public int compareTo(java.lang.Object other)
- Specified by:
compareTo in interface java.lang.Comparable
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object