public class ServiceReferenceRankingComparator
extends java.lang.Object
implements java.util.Comparator<org.osgi.framework.ServiceReference>, java.io.Serializable
| Constructor and Description |
|---|
ServiceReferenceRankingComparator() |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(org.osgi.framework.ServiceReference ref1,
org.osgi.framework.ServiceReference ref2)
Compares two service reference.
|
public int compare(org.osgi.framework.ServiceReference ref1,
org.osgi.framework.ServiceReference ref2)
compare in interface java.util.Comparator<org.osgi.framework.ServiceReference>ref1 - the reference 1ref2 - the reference 2-1 if the reference 1
is 'higher' than the reference 2, 1 otherwise.
(higher is term of ranking means a lower index)Comparator.compare(java.lang.Object, java.lang.Object)Copyright © 2006-2014 The Apache Software Foundation. All Rights Reserved.