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
-
Constructor Summary
Constructors -
Method Summary
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
-
Constructor Details
-
ResourceWriterComparator
public ResourceWriterComparator() -
ResourceWriterComparator
-
-
Method Details
-
compare
- Specified by:
comparein interfaceComparator<ResourceWriter>
-