Package net.sf.basedb.core.snapshot
Class AnnotationSetSnapshot.SortByProjectComparator
- java.lang.Object
-
- net.sf.basedb.core.snapshot.AnnotationSetSnapshot.SortByProjectComparator
-
- All Implemented Interfaces:
Comparator<AnnotationSnapshot>
- Enclosing class:
- AnnotationSetSnapshot
static class AnnotationSetSnapshot.SortByProjectComparator extends Object implements Comparator<AnnotationSnapshot>
Comparator for sorting annotation snapshots so that project-specific annotations appear before default annotations. This makes it easier to filter out default values that has been overridden by projec-specific values.- Since:
- 3.10
-
-
Constructor Summary
Constructors Constructor Description SortByProjectComparator()
-
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
-
-
-
-
Method Detail
-
compare
public int compare(AnnotationSnapshot o1, AnnotationSnapshot o2)
- Specified by:
compare
in interfaceComparator<AnnotationSnapshot>
-
-