|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.cache.FqnComparator
@Immutable public class FqnComparator
Compares the order of two FQN. Sorts by name, then by depth, e.g.
aaa/bbb xxx xxx/ccc
| Field Summary | |
|---|---|
static FqnComparator |
INSTANCE
|
| Constructor Summary | |
|---|---|
FqnComparator()
Sorts by name, then depth. |
|
| Method Summary | |
|---|---|
int |
compare(Fqn fqn1,
Fqn fqn2)
Returns -1 if the first comes before; 0 if they are the same; 1 if the second Fqn comes before. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Comparator |
|---|
equals |
| Field Detail |
|---|
public static final FqnComparator INSTANCE
| Constructor Detail |
|---|
public FqnComparator()
| Method Detail |
|---|
public int compare(Fqn fqn1,
Fqn fqn2)
null always comes first.
compare in interface java.util.Comparator<Fqn>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||