com.alee.extended.colorchooser
Class GradientColorDataComparator

java.lang.Object
  extended by com.alee.extended.colorchooser.GradientColorDataComparator
All Implemented Interfaces:
java.util.Comparator<GradientColorData>

public class GradientColorDataComparator
extends java.lang.Object
implements java.util.Comparator<GradientColorData>

GradientColorData location comparator.

Author:
Mikle Garin

Constructor Summary
GradientColorDataComparator()
           
 
Method Summary
 int compare(GradientColorData o1, GradientColorData o2)
          Compares two GradientColorData by their locations.
 
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

GradientColorDataComparator

public GradientColorDataComparator()
Method Detail

compare

public int compare(GradientColorData o1,
                   GradientColorData o2)
Compares two GradientColorData by their locations.

Specified by:
compare in interface java.util.Comparator<GradientColorData>
Parameters:
o1 - first GradientColorData to be compared
o2 - second GradientColorData to be compared
Returns:
a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second