pulse - the web application framework Get pulse at SourceForge.net. Fast, secure and Free Open Source software downloads Ohloh project report for pulse-java

org.torweg.pulse.component.statistics.util
Class ScreenResolutionXYValueComparator

java.lang.Object
  extended by org.torweg.pulse.component.statistics.util.ScreenResolutionXYValueComparator
All Implemented Interfaces:
java.io.Serializable, java.util.Comparator<ScreenResolution>

public final class ScreenResolutionXYValueComparator
extends java.lang.Object
implements java.util.Comparator<ScreenResolution>, java.io.Serializable

Compares two ScreenResolutions by their x and y values.

Version:
$Revision: 1562 $
Author:
Daniel Dietz
See Also:
Serialized Form

Constructor Summary
ScreenResolutionXYValueComparator()
           
 
Method Summary
 int compare(ScreenResolution o1, ScreenResolution o2)
          Compares two ScreenResolutions by their x and y values.
 
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

ScreenResolutionXYValueComparator

public ScreenResolutionXYValueComparator()
Method Detail

compare

public int compare(ScreenResolution o1, ScreenResolution o2)
Compares two ScreenResolutions by their x and y values.

Specified by:
compare in interface java.util.Comparator<ScreenResolution>
Parameters:
o1 - a ScreenResolution
o2 - a ScreenResolution
Returns:
-1 or 0 or 1
See Also:
Comparator.compare(java.lang.Object, java.lang.Object)