java.lang.Object
io.helidon.inject.runtime.ServiceProviderComparator
- All Implemented Interfaces:
Serializable
,Comparator<Provider<?>>
public class ServiceProviderComparator
extends Object
implements Comparator<Provider<?>>, Serializable
A comparator appropriate for service providers, first using its
Weight
and then service type name
to determine its natural ordering.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionint
static ServiceProviderComparator
create()
Returns a service provider comparator.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, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Method Details
-
create
Returns a service provider comparator.- Returns:
- the service provider comparator
-
compare
- Specified by:
compare
in interfaceComparator<Provider<?>>
-