org.openstreetmap.osmosis.core.mysql.v0_5.impl
Class EntityHistoryComparator<T extends Entity>

java.lang.Object
  extended by org.openstreetmap.osmosis.core.mysql.v0_5.impl.EntityHistoryComparator<T>
Type Parameters:
T - The data type to be compared.
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 ordering entity history records by timestamp.

Author:
Brett Henderson

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>>