Package net.sf.basedb.core.snapshot
Class AnnotationSnapshot.AnnotationTypeComparator
java.lang.Object
net.sf.basedb.core.snapshot.AnnotationSnapshot.AnnotationTypeComparator
- All Implemented Interfaces:
Comparator<AnnotationSnapshot>
- Enclosing class:
- AnnotationSnapshot
static class AnnotationSnapshot.AnnotationTypeComparator extends Object implements Comparator<AnnotationSnapshot>
Comparator implementation for sorting snapshots
by name of annotation type. If the names are
sorted by source type of the annotation and then
on the id of the annotation.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description AnnotationTypeComparator(DbControl dc)
-
Method Summary
Modifier and Type Method Description int
compare(AnnotationSnapshot o1, AnnotationSnapshot o2)
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
-
-
Constructor Details
-
AnnotationTypeComparator
AnnotationTypeComparator(DbControl dc)
-
-
Method Details
-
compare
- Specified by:
compare
in interfaceComparator<AnnotationSnapshot>
-