public boolean matches ( ColorSpace inputColor ) { if ( inputColor == this ) return true ; if ( inputColor == ANY || this == ANY ) return true ; if ( ( inputColor == ANY_INTERLEAVED || this == ANY_INTERLEAVED || inputColor == ANY_PLANAR || this == ANY_PLANAR ) && inputColor . planar == this . planar ) return true ; return false ; }
Determines if two colors match . Aside from simply comparing the objects this function also takes into account lables ANY ANY_INTERLEAVED ANY PLANAR .