public class MemberOrderComparator extends Object implements Comparator<Object>
MemberOrderFacet obtained from each FacetedMethod
).
Will also compare OrderSets; these are put after any
FacetedMethods. If there is more than one OrderSet then these are
compared by an OrderSetGroupNameComparator.
If there is no annotation on either member, then will compare the members by name instead.
Can specify if requires that members are in the same (group) name.
| Constructor and Description |
|---|
MemberOrderComparator(boolean ensureGroupIsSame) |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(IdentifiedHolder o1,
IdentifiedHolder o2) |
int |
compare(Object o1,
Object o2) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequalspublic MemberOrderComparator(boolean ensureGroupIsSame)
public int compare(Object o1, Object o2)
compare in interface Comparator<Object>public int compare(IdentifiedHolder o1, IdentifiedHolder o2)
Copyright © 2010–2014 The Apache Software Foundation. All rights reserved.