mirror of
https://github.com/haraldk/TwelveMonkeys.git
synced 2025-08-04 03:55:28 -04:00
Equals method for DiscreteAlphaIndexColorModel, needed for Java 10.
(cherry picked from commit b86bad2bf9f01fdd19067f5b69254aa237f80ca2)
This commit is contained in:
parent
230ac33283
commit
c9e2e21727
@ -153,6 +153,12 @@ public final class DiscreteAlphaIndexColorModel extends ColorModel {
|
||||
(raster.getNumBands() == 2) && ((1 << size) >= icm.getMapSize()));
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
return this == obj
|
||||
|| obj != null && getClass() == obj.getClass() && icm.equals(((DiscreteAlphaIndexColorModel) obj).icm);
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "DiscreteAlphaIndexColorModel: #pixelBits = " + pixel_bits
|
||||
+ " numComponents = " + getNumComponents()
|
||||
|
Loading…
x
Reference in New Issue
Block a user