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.
-
-
Constructor Summary
Constructors Constructor Description AnnotationTypeComparator(DbControl dc)
-
Method Summary
All Methods Instance Methods Concrete Methods 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 Detail
-
dc
private final DbControl dc
-
-
Constructor Detail
-
AnnotationTypeComparator
AnnotationTypeComparator(DbControl dc)
-
-
Method Detail
-
compare
public int compare(AnnotationSnapshot o1, AnnotationSnapshot o2)
- Specified by:
compare
in interfaceComparator<AnnotationSnapshot>
-
-