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

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

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

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

Author:
Brett Henderson

Constructor Summary
EntityByTypeThenIdThenVersionComparator()
          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

EntityByTypeThenIdThenVersionComparator

public EntityByTypeThenIdThenVersionComparator()
Creates a new instance.

Method Detail

compare

public int compare(EntityContainer o1,
                   EntityContainer o2)

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