Package net.sf.basedb.core
Class RawDataTypes.NameComparator
- java.lang.Object
-
- net.sf.basedb.core.RawDataTypes.NameComparator
-
- All Implemented Interfaces:
Comparator<RawDataType>
- Enclosing class:
- RawDataTypes
public static class RawDataTypes.NameComparator extends Object implements Comparator<RawDataType>
Comparator implementation that sorts raw data types according to their name. Use this with a TreeSet if you need raw data types returned fromRawDataTypes.getRawDataTypes()
to be in the same order as before 2.16.2.- Since:
- 2.16.2
- Author:
- Nicklas
- Last modified
- $Date: 2017-05-22 14:35:27 +0200 (må, 22 maj 2017) $
-
-
Constructor Summary
Constructors Constructor Description NameComparator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(RawDataType o1, RawDataType 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(RawDataType o1, RawDataType o2)
- Specified by:
compare
in interfaceComparator<RawDataType>
-
-