Class ResourceWriter.ResourceWriterComparator
- java.lang.Object
-
- org.jboss.resteasy.reactive.common.model.ResourceWriter.ResourceWriterComparator
-
- All Implemented Interfaces:
Comparator<ResourceWriter>
- Enclosing class:
- ResourceWriter
public static class ResourceWriter.ResourceWriterComparator extends Object implements Comparator<ResourceWriter>
The comparison for now is simple: 1) Application provided writers come first 2) Writers higher priority come first (same as writer interceptors) 3) Then the more specific the media type, the higher the priority 4) Finally we compare the number of media types
-
-
Field Summary
Fields Modifier and Type Field Description static ResourceWriter.ResourceWriterComparator
INSTANCE
-
Constructor Summary
Constructors Constructor Description ResourceWriterComparator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(ResourceWriter o1, ResourceWriter o2)
-
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 Detail
-
INSTANCE
public static final ResourceWriter.ResourceWriterComparator INSTANCE
-
-
Method Detail
-
compare
public int compare(ResourceWriter o1, ResourceWriter o2)
- Specified by:
compare
in interfaceComparator<ResourceWriter>
-
-