public boolean equals(Name otherName) { return (otherName.equalsIgnoreCase(this)); }
public boolean equals(Name otherName){ return (otherName.equalsIgnoreCase(this)); }
protected static final <D extends Definition> D getDefinition(List<D> definitions, Name name, boolean ignoreCase) { for (D definition : definitions) { if ((ignoreCase && definition.getQualifiedNamePart().equalsIgnoreCase(name)) || (!ignoreCase && definition.getQualifiedNamePart().equals(name))) { return definition; } } return null; }