Package com.aspectran.web.support.http
Class MediaType.SpecificityComparator<T extends MediaType>
- java.lang.Object
-
- com.aspectran.web.support.http.MediaType.SpecificityComparator<T>
-
- Type Parameters:
T
- the type of mime types that may be compared by this comparator
- All Implemented Interfaces:
java.util.Comparator<T>
- Enclosing class:
- MediaType
public static class MediaType.SpecificityComparator<T extends MediaType> extends java.lang.Object implements java.util.Comparator<T>
Comparator to sortMediaTypes
in order of specificity.
-
-
Constructor Summary
Constructors Constructor Description SpecificityComparator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(T MediaType1, T MediaType2)
protected int
compareParameters(T mediaType1, T mediaType2)
-