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:
Comparator<ConfigGroup>

public class TimestampComparator
extends Object
implements 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 Comparator<ConfigGroup>
See Also:
Comparator.compare(Object, Object)


Copyright © 2006-2012 OPS4J - Open Participation Software for Java. All Rights Reserved.