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 TypeMethodDescriptionintstatic ServiceProviderComparatorcreate()Returns a service provider comparator.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
comparein interfaceComparator<Provider<?>>
-