org.openstreetmap.osmosis.core.pgsql.v0_6.impl
Class DbOrderedFeatureComparator<T extends Storeable>

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

public class DbOrderedFeatureComparator<T extends Storeable>
extends java.lang.Object
implements java.util.Comparator<DbOrderedFeature<T>>

Compares way nodes to allow them to be sorted by way id then sequence number.

Author:
Brett Henderson

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

DbOrderedFeatureComparator

public DbOrderedFeatureComparator()
Method Detail

compare

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

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