org.apache.clerezza.triaxrs.util
Class InconsistentMediaTypeComparator
java.lang.Object
org.apache.clerezza.triaxrs.util.InconsistentMediaTypeComparator
- All Implemented Interfaces:
- Comparator<javax.ws.rs.core.MediaType>
public class InconsistentMediaTypeComparator
- extends Object
- implements Comparator<javax.ws.rs.core.MediaType>
Sorts media types in accordance with an accept-header inconsistently
This comparator is not consistent with equals
- Author:
- reto
|
Method Summary |
int |
compare(javax.ws.rs.core.MediaType o1,
javax.ws.rs.core.MediaType o2)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InconsistentMediaTypeComparator
public InconsistentMediaTypeComparator()
InconsistentMediaTypeComparator
public InconsistentMediaTypeComparator(AcceptHeader acceptHeader)
compare
public int compare(javax.ws.rs.core.MediaType o1,
javax.ws.rs.core.MediaType o2)
- Specified by:
compare in interface Comparator<javax.ws.rs.core.MediaType>
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.