org.openstreetmap.osmosis.core.apidb.v0_6.impl
Class EntityHistoryComparator<T extends Entity>

java.lang.Object
  extended by org.openstreetmap.osmosis.core.apidb.v0_6.impl.EntityHistoryComparator<T>
Type Parameters:
T - The type of entity being sorted.
All Implemented Interfaces:
java.util.Comparator<EntityHistory<T>>

public class EntityHistoryComparator<T extends Entity>
extends java.lang.Object
implements java.util.Comparator<EntityHistory<T>>

A comparator for sorting entity history objects by entity id then entity version.


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

EntityHistoryComparator

public EntityHistoryComparator()
Method Detail

compare

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

Specified by:
compare in interface java.util.Comparator<EntityHistory<T extends Entity>>