/** * Returns true if this key matches the given key. A key is considered a * match for another key if the parent and subtypes are matches or subtypes of * the given key's parent and subtype, and the context is a subset of the * matched context. */ boolean matches(TransformKey other) { return (parent == null || parent.matches(other.parent)) && (key.matches(other.key)) && (context == null || context.matches(other.context)); }
/** * Returns true if this key matches the given key. A key is considered a * match for another key if the parent and subtypes are matches or subtypes of * the given key's parent and subtype, and the context is a subset of the * matched context. */ boolean matches(TransformKey other) { return (parent == null || parent.matches(other.parent)) && (key.matches(other.key)) && (context == null || context.matches(other.context)); }
/** * Returns true if this key matches the given key. A key is considered a * match for another key if the parent and subtypes are matches or subtypes of * the given key's parent and subtype, and the context is a subset of the * matched context. */ boolean matches(TransformKey other) { return (parent == null || parent.matches(other.parent)) && (key.matches(other.key)) && (context == null || context.matches(other.context)); }