Package net.sf.basedb.core.snapshot
Class AnnotationSnapshot.ProjectComparator
java.lang.Object
net.sf.basedb.core.snapshot.AnnotationSnapshot.ProjectComparator
- All Implemented Interfaces:
Comparator<AnnotationSnapshot>
- Enclosing class:
- AnnotationSnapshot
static class AnnotationSnapshot.ProjectComparator
extends Object
implements Comparator<AnnotationSnapshot>
Comparator implementation for sorting snapshots
by name of project. If the project names are equal the snapshots are
sorted by annotation type.
-
Field Summary
Modifier and TypeFieldDescriptionprivate final AnnotationSnapshot.AnnotationTypeComparator
private final DbControl
private final boolean
-
Constructor Summary
-
Method Summary
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, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Field Details
-
dc
-
defaultFirst
private final boolean defaultFirst -
atComp
-
-
Constructor Details
-
ProjectComparator
ProjectComparator(DbControl dc, boolean defaultFirst)
-
-
Method Details
-
compare
- Specified by:
compare
in interfaceComparator<AnnotationSnapshot>
-