public class ImageComparator extends Object implements Comparator
| Modifier and Type | Field and Description |
|---|---|
static String |
IMAGE_SUFFIX |
| Constructor and Description |
|---|
ImageComparator() |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(Object obj1,
Object obj2)
Compare two images.
|
boolean |
equals(Object obj)
Comparators are equal if they're the same class.
|
static void |
writeImage(File file,
BufferedImage img) |
static void |
writeJPEG(File file,
BufferedImage img)
Write the given buffered image to disk.
|
static void |
writePNG(File file,
BufferedImage img) |
public static String IMAGE_SUFFIX
public static void writeImage(File file, BufferedImage img) throws IOException
IOExceptionpublic static void writePNG(File file, BufferedImage img) throws IOException
IOExceptionpublic static void writeJPEG(File file, BufferedImage img) throws IOException
IOExceptionpublic int compare(Object obj1, Object obj2)
compare in interface Comparatorpublic boolean equals(Object obj)
equals in interface Comparatorequals in class Object
Abbot is hosted on