public class ServiceComparator extends Object implements Comparator<org.osgi.framework.ServiceReference>, Serializable
ServiceReference
objects.Constructor and Description |
---|
ServiceComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compare(org.osgi.framework.ServiceReference ref1,
org.osgi.framework.ServiceReference ref2)
Compares this ServiceReference with the specified ServiceReference for order using the OSGi
ServiceReference compare method. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public int compare(org.osgi.framework.ServiceReference ref1, org.osgi.framework.ServiceReference ref2)
ServiceReference
compare method.
If this ServiceReference and the specified ServiceReference have the same service id they are equal. This ServiceReference is less than the specified ServiceReference if it has a lower service ranking and greater if it has a higher service ranking. Otherwise, if this ServiceReference and the specified ServiceReference have the same service ranking, this ServiceReference is less than the specified ServiceReference if it has a higher service id and greater if it has a lower service id.
compare
in interface Comparator<org.osgi.framework.ServiceReference>
This work is licensed under a Creative Commons Attribution 4.0 International License.