< prev index next >

src/java.desktop/share/classes/java/awt/image/ComponentColorModel.java

Print this page

        

*** 2923,2948 **** band[0] = raster.getNumBands() - 1; return raster.createWritableChild(x, y, raster.getWidth(), raster.getHeight(), x, y, band); } - - /** - * Compares this color model with another for equality. - * - * @param obj The object to compare with this color model. - * @return {@code true} if the color model objects are equal, - * {@code false} if they are not. - */ - public boolean equals(Object obj) { - if (!super.equals(obj)) { - return false; - } - - if (obj.getClass() != getClass()) { - return false; - } - - return true; - } - } --- 2923,2928 ----
< prev index next >