@Override MatchRule reparent(final MatchRule newParent) { return new MatchAbstractTypeAuthorityRule(newParent, authority); }
@Override StringBuilder asString(final StringBuilder b) { return parentAsString(b).append("abstractTypeAuthority=").append(authority).append(','); } }
@Override boolean halfEqual(final MatchRule other) { return authority.equals(other.getMatchAbstractTypeAuthority()) && parentHalfEqual(other); }
@Override public int hashCode() { return multiHashUnordered(parentHashCode(), 7879, authority.hashCode()); }
@Override public int hashCode() { return multiHashUnordered(parentHashCode(), 7879, authority.hashCode()); }
/** * Create a new rule which is the same as this rule, but also matches the given abstract type and type authority. * * @param typeName the type to match * @param authorityName the type authority name to match * @return the new rule */ public final MatchRule matchAbstractType(String typeName, String authorityName) { MatchRule baseRule; if (typeName == null || typeName.equals("*")) { baseRule = without(MatchAbstractTypeRule.class); } else { baseRule = new MatchAbstractTypeRule(this, typeName); } if (authorityName == null || authorityName.equals("*")) { return baseRule.without(MatchAbstractTypeAuthorityRule.class); } else { return new MatchAbstractTypeAuthorityRule(baseRule, authorityName); } }
@Override StringBuilder asString(final StringBuilder b) { return parentAsString(b).append("abstractTypeAuthority=").append(authority).append(','); } }
@Override public int hashCode() { return multiHashUnordered(parentHashCode(), 7879, authority.hashCode()); }
@Override boolean halfEqual(final MatchRule other) { return authority.equals(other.getMatchAbstractTypeAuthority()) && parentHalfEqual(other); }
@Override MatchRule reparent(final MatchRule newParent) { return new MatchAbstractTypeAuthorityRule(newParent, authority); }
@Override StringBuilder asString(final StringBuilder b) { return parentAsString(b).append("abstractTypeAuthority=").append(authority).append(','); } }
@Override public int hashCode() { return multiHashUnordered(parentHashCode(), 7879, authority.hashCode()); }
@Override boolean halfEqual(final MatchRule other) { return authority.equals(other.getMatchAbstractTypeAuthority()) && parentHalfEqual(other); }
@Override MatchRule reparent(final MatchRule newParent) { return new MatchAbstractTypeAuthorityRule(newParent, authority); }
@Override StringBuilder asString(final StringBuilder b) { return parentAsString(b).append("abstractTypeAuthority=").append(authority).append(','); } }
@Override boolean halfEqual(final MatchRule other) { return authority.equals(other.getMatchAbstractTypeAuthority()) && parentHalfEqual(other); }
@Override MatchRule reparent(final MatchRule newParent) { return new MatchAbstractTypeAuthorityRule(newParent, authority); }
/** * Create a new rule which is the same as this rule, but also matches the given abstract type and type authority. * * @param typeName the type to match * @param authorityName the type authority name to match * @return the new rule */ public final MatchRule matchAbstractType(String typeName, String authorityName) { MatchRule baseRule; if (typeName == null || typeName.equals("*")) { baseRule = without(MatchAbstractTypeRule.class); } else { baseRule = new MatchAbstractTypeRule(this, typeName); } if (authorityName == null || authorityName.equals("*")) { return baseRule.without(MatchAbstractTypeAuthorityRule.class); } else { return new MatchAbstractTypeAuthorityRule(baseRule, authorityName); } }
/** * Create a new rule which is the same as this rule, but also matches the given abstract type and type authority. * * @param typeName the type to match * @param authorityName the type authority name to match * @return the new rule */ public final MatchRule matchAbstractType(String typeName, String authorityName) { MatchRule baseRule; if (typeName == null || typeName.equals("*")) { baseRule = without(MatchAbstractTypeRule.class); } else { baseRule = new MatchAbstractTypeRule(this, typeName); } if (authorityName == null || authorityName.equals("*")) { return baseRule.without(MatchAbstractTypeAuthorityRule.class); } else { return new MatchAbstractTypeAuthorityRule(baseRule, authorityName); } }
/** * Create a new rule which is the same as this rule, but also matches the given abstract type and type authority. * * @param typeName the type to match * @param authorityName the type authority name to match * @return the new rule */ public final MatchRule matchAbstractType(String typeName, String authorityName) { MatchRule baseRule; if (typeName == null || typeName.equals("*")) { baseRule = without(MatchAbstractTypeRule.class); } else { baseRule = new MatchAbstractTypeRule(this, typeName); } if (authorityName == null || authorityName.equals("*")) { return baseRule.without(MatchAbstractTypeAuthorityRule.class); } else { return new MatchAbstractTypeAuthorityRule(baseRule, authorityName); } }