/** * Build the to String * * @param builder the builder to use */ protected void internalToString(StringBuilder builder) { SignatureNameUtil.signatureToString(builder, name, getParameters()); } }
public boolean equals(Object obj) { if (obj == this) return true; if (obj == null || obj instanceof Signature == false) return false; Signature other = (Signature) obj; if (getName().equals(other.getName()) == false) return false; String[] thisParameters = getParameters(); String[] otherParameters = other.getParameters(); if (thisParameters.length != otherParameters.length) return false; for (int i = 0; i < thisParameters.length; ++i) { if (thisParameters[i].equals(otherParameters[i]) == false) return false; } return true; }