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

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

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

A comparator for sorting database feature objects by entity id.

Author:
Brett Henderson

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

DbFeatureComparator

public DbFeatureComparator()
Method Detail

compare

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

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