@Immutable public class FqnComparator extends Object implements Comparator<Fqn>, Serializable
aaa/bbb xxx xxx/ccc
Modifier and Type | Field and Description |
---|---|
static FqnComparator |
INSTANCE |
Constructor and Description |
---|
FqnComparator() |
Modifier and Type | Method and Description |
---|---|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public static final FqnComparator INSTANCE
public int compare(Fqn fqn1, Fqn fqn2)
null
always comes first.compare
in interface Comparator<Fqn>
Copyright © 2020 JBoss, a division of Red Hat. All rights reserved.