private static class JJDocMojo.GrammarInfoComparator
extends java.lang.Object
implements java.util.Comparator
| Modifier and Type | Field and Description |
|---|---|
private static JJDocMojo.GrammarInfoComparator |
INSTANCE
The singleton instance of this comparator.
|
| Modifier | Constructor and Description |
|---|---|
private |
GrammarInfoComparator() |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(java.lang.Object o1,
java.lang.Object o2)
Compares the path of two grammar files lexicographically.
|
static JJDocMojo.GrammarInfoComparator |
getInstance()
Gets the singleton instance of this class.
|
private static final JJDocMojo.GrammarInfoComparator INSTANCE
public static JJDocMojo.GrammarInfoComparator getInstance()
public int compare(java.lang.Object o1,
java.lang.Object o2)
compare in interface java.util.Comparatoro1 - The first grammar info.o2 - The second grammar info.