Code example for ImageTypeSpecifier

Methods: equals

0
                ImageTypeSpecifier.createInterleaved(sRGB, new int [] {0, 1, 2}, DataBuffer.TYPE_INT, false, false);
 
        assertEquals(spec, other);
        assertEquals(other, spec);
 
        assertTrue(spec.equals(other));
        assertTrue(other.equals(spec));
        assertFalse(spec.equals(different));
        assertFalse(different.equals(spec));
        assertFalse(spec.equals(broken));
        assertFalse(broken.equals(spec));
    } 
 
    @Test
    public void testHashCode() { 
        ImageTypeSpecifier spec = new UInt32ImageTypeSpecifier(sRGB, new int [] {0, 1, 2}, false, false);
        ImageTypeSpecifier other = new UInt32ImageTypeSpecifier(sRGB, new int [] {0, 1, 2}, false, false);
        ImageTypeSpecifier different = new UInt32ImageTypeSpecifier(sRGB, new int [] {0, 1, 2, 3}, true, false);
        // Equivalent, but broken, not equal 
        ImageTypeSpecifier broken =