Class MessageBodyFactory.LegacyWorkerComparator<T>
java.lang.Object
org.glassfish.jersey.message.internal.MessageBodyFactory.LegacyWorkerComparator<T>
- Type Parameters:
T
- MessageBodyReader or MessageBodyWriter.
- All Implemented Interfaces:
Comparator<AbstractEntityProviderModel<T>>
- Enclosing class:
- MessageBodyFactory
private static class MessageBodyFactory.LegacyWorkerComparator<T>
extends Object
implements Comparator<AbstractEntityProviderModel<T>>
AbstractEntityProviderModel
comparator which
works as it is described in JAX-RS 1.x specification.
Pairs are sorted by custom/provided (custom goes first), media type and declaration distance.-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final MessageBodyFactory.DeclarationDistanceComparator<T>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
compare
(AbstractEntityProviderModel<T> modelA, AbstractEntityProviderModel<T> modelB) 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
-
Field Details
-
distanceComparator
-
-
Constructor Details
-
LegacyWorkerComparator
-
-
Method Details
-
compare
- Specified by:
compare
in interfaceComparator<T>
-