Class ColorCountComparator

java.lang.Object
org.apache.commons.imaging.palette.ColorCountComparator
All Implemented Interfaces:
Serializable, Comparator<ColorCount>

public class ColorCountComparator extends Object implements Comparator<ColorCount>, Serializable
A comparator for {#link ColorCount} elements.

It uses a given {#link ColorComponent} to choose what channel must be used for the comparison.

For example, if the comparator is created for the ColorComponent.RED channel, then it will compare the value of red of each ColorCount object in the array of elements.

Since:
1.0-alpha2
See Also: