org.ops4j.pax.coin.service.internal.provider
Class TimestampComparator

java.lang.Object
  extended by org.ops4j.pax.coin.service.internal.provider.TimestampComparator
All Implemented Interfaces:
java.util.Comparator<ConfigGroup>

public class TimestampComparator
extends java.lang.Object
implements java.util.Comparator<ConfigGroup>

Compare two configuration groups by comparing timestamp metadata entry.

Since:
0.3.0, March 02, 2008
Author:
Alin Dreghiciu

Constructor Summary
TimestampComparator()
           
 
Method Summary
 int compare(ConfigGroup configGroup1, ConfigGroup configGroup2)
           
 
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

TimestampComparator

public TimestampComparator()
Method Detail

compare

public int compare(ConfigGroup configGroup1,
                   ConfigGroup configGroup2)
Specified by:
compare in interface java.util.Comparator<ConfigGroup>
See Also:
Comparator.compare(Object, Object)


Copyright © 2008. All Rights Reserved.