public class SortedKey<T> extends Object implements Comparable<SortedKey<T>>, MediaTypeMap.Typed
This helps out a lot when the desired media type is a wildcard and to weed out all the possible default mappings.
| Constructor and Description |
|---|
SortedKey(Class<?> intf,
T reader,
Class<?> readerClass) |
SortedKey(Class<?> intf,
T reader,
Class<?> readerClass,
boolean isBuiltin) |
SortedKey(Class<?> intf,
T reader,
Class<?> readerClass,
int priority,
boolean isBuiltin) |
SortedKey(T obj,
boolean isBuiltin,
Class<?> template,
int priority)
Direct populate
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(SortedKey<T> tMessageBodyKey) |
T |
getObj() |
int |
getPriority() |
Class<?> |
getType() |
public SortedKey(Class<?> intf, T reader, Class<?> readerClass, int priority, boolean isBuiltin)
public int compareTo(SortedKey<T> tMessageBodyKey)
compareTo in interface Comparable<SortedKey<T>>public Class<?> getType()
getType in interface MediaTypeMap.Typedpublic T getObj()
public int getPriority()
Copyright © 2020 JBoss by Red Hat. All rights reserved.