2.17.2: 2011-06-17

net.sf.basedb.core
Class RawDataTypes.NameComparator

java.lang.Object
  extended by 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 from RawDataTypes.getRawDataTypes() to be in the same order as before 2.16.2.

Since:
2.16.2
Author:
Nicklas
Last modified
$Date: 2011-02-18 13:19:38 +0100 (Fri, 18 Feb 2011) $

Constructor Summary
RawDataTypes.NameComparator()
           
 
Method Summary
 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
 

Constructor Detail

RawDataTypes.NameComparator

public RawDataTypes.NameComparator()
Method Detail

compare

public int compare(RawDataType o1,
                   RawDataType o2)
Specified by:
compare in interface Comparator<RawDataType>

2.17.2: 2011-06-17