org.openstreetmap.osmosis.core.apidb.v0_6.impl
Class DbFeatureHistoryComparator<T extends Storeable>

java.lang.Object
  extended by org.openstreetmap.osmosis.core.apidb.v0_6.impl.DbFeatureHistoryComparator<T>
Type Parameters:
T - The encapsulated feature type.
All Implemented Interfaces:
java.util.Comparator<DbFeatureHistory<DbFeature<T>>>

public class DbFeatureHistoryComparator<T extends Storeable>
extends java.lang.Object
implements java.util.Comparator<DbFeatureHistory<DbFeature<T>>>

A comparator for sorting database feature objects by entity id, then entity version.


Constructor Summary
DbFeatureHistoryComparator()
           
 
Method Summary
 int compare(DbFeatureHistory<DbFeature<T>> o1, DbFeatureHistory<DbFeature<T>> 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

DbFeatureHistoryComparator

public DbFeatureHistoryComparator()
Method Detail

compare

public int compare(DbFeatureHistory<DbFeature<T>> o1,
                   DbFeatureHistory<DbFeature<T>> o2)

Specified by:
compare in interface java.util.Comparator<DbFeatureHistory<DbFeature<T extends Storeable>>>