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>

Orders entities first by their type (bound, node, way and relation), then their identifer.

Author:
Brett Henderson

Constructor Summary
EntityByTypeThenIdComparator()
          Creates a new instance.
 
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()
Creates a new instance.

Method Detail

compare

public int compare(EntityContainer o1,
                   EntityContainer o2)

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