T - common super-type used for computing the declaration distance and
comparing instances.private static class MessageBodyFactory.DeclarationDistanceComparator<T>
extends java.lang.Object
implements java.util.Comparator<T>
| Modifier and Type | Field and Description |
|---|---|
private java.lang.Class<T> |
declared |
private java.util.Map<java.lang.Class,java.lang.Integer> |
distanceMap |
| Constructor and Description |
|---|
DeclarationDistanceComparator(java.lang.Class<T> declared) |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(T o1,
T o2) |
private int |
getDistance(T t) |