mirror of
https://github.com/haraldk/TwelveMonkeys.git
synced 2025-08-04 12:05:29 -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()));
|
(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() {
|
public String toString() {
|
||||||
return "DiscreteAlphaIndexColorModel: #pixelBits = " + pixel_bits
|
return "DiscreteAlphaIndexColorModel: #pixelBits = " + pixel_bits
|
||||||
+ " numComponents = " + getNumComponents()
|
+ " numComponents = " + getNumComponents()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user