org.openstreetmap.osmosis.core.sort.v0_6
Class EntityByTypeThenIdComparator

java.lang.Object
  extended by org.openstreetmap.osmosis.core.sort.v0_6.EntityByTypeThenIdComparator
All Implemented Interfaces:
java.util.Comparator<EntityContainer>

public class EntityByTypeThenIdComparator
extends java.lang.Object
implements java.util.Comparator<EntityContainer>

Compares two entities and sorts them first by their type (Nodes, then Segments, then Ways) and then by their identifier.

Author:
Brett Henderson

Constructor Summary
EntityByTypeThenIdComparator()
           
 
Method Summary
 int compare(EntityContainer o1, EntityContainer 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

EntityByTypeThenIdComparator

public EntityByTypeThenIdComparator()
Method Detail

compare

public int compare(EntityContainer o1,
                   EntityContainer o2)

Specified by:
compare in interface java.util.Comparator<EntityContainer>