/** {@inheritDoc} */ @Override public boolean equals(Object other) { if (!(other instanceof StringIdItem)) { return false; } StringIdItem otherString = (StringIdItem) other; return value.equals(otherString.value); }
/** * Returns whether the lines and files match between this instance and * the one given. * * @param other {@code non-null;} the instance to compare to * @return {@code true} iff the lines and files match */ public boolean sameLineAndFile(SourcePosition other) { return (line == other.line) && ((sourceFile == other.sourceFile) || ((sourceFile != null) && sourceFile.equals(other.sourceFile))); }
/** {@inheritDoc} */ @Override public boolean equals(Object other) { if (!(other instanceof StringIdItem)) { return false; } StringIdItem otherString = (StringIdItem) other; return value.equals(otherString.value); }
/** * Returns whether the lines and files match between this instance and * the one given. * * @param other {@code non-null;} the instance to compare to * @return {@code true} iff the lines and files match */ public boolean sameLineAndFile(SourcePosition other) { return (line == other.line) && ((sourceFile == other.sourceFile) || ((sourceFile != null) && sourceFile.equals(other.sourceFile))); }
/** {@inheritDoc} */ @Override public boolean equals(Object other) { if (!(other instanceof StringIdItem)) { return false; } StringIdItem otherString = (StringIdItem) other; return value.equals(otherString.value); }
/** {@inheritDoc} */ @Override public boolean equals(Object other) { if (!(other instanceof StringIdItem)) { return false; } StringIdItem otherString = (StringIdItem) other; return value.equals(otherString.value); }
/** * Returns whether the lines and files match between this instance and * the one given. * * @param other {@code non-null;} the instance to compare to * @return {@code true} iff the lines and files match */ public boolean sameLineAndFile(SourcePosition other) { return (line == other.line) && ((sourceFile == other.sourceFile) || ((sourceFile != null) && sourceFile.equals(other.sourceFile))); }
/** * Returns whether the lines and files match between this instance and * the one given. * * @param other {@code non-null;} the instance to compare to * @return {@code true} iff the lines and files match */ public boolean sameLineAndFile(SourcePosition other) { return (line == other.line) && ((sourceFile == other.sourceFile) || ((sourceFile != null) && sourceFile.equals(other.sourceFile))); }
/** * Returns whether the lines and files match between this instance and * the one given. * * @param other {@code non-null;} the instance to compare to * @return {@code true} iff the lines and files match */ public boolean sameLineAndFile(SourcePosition other) { return (line == other.line) && ((sourceFile == other.sourceFile) || ((sourceFile != null) && sourceFile.equals(other.sourceFile))); }
/** * Returns whether the lines and files match between this instance and * the one given. * * @param other {@code non-null;} the instance to compare to * @return {@code true} iff the lines and files match */ public boolean sameLineAndFile(SourcePosition other) { return (line == other.line) && ((sourceFile == other.sourceFile) || ((sourceFile != null) && sourceFile.equals(other.sourceFile))); }
/** {@inheritDoc} */ @Override public boolean equals(Object other) { if (!(other instanceof StringIdItem)) { return false; } StringIdItem otherString = (StringIdItem) other; return value.equals(otherString.value); }
/** {@inheritDoc} */ public boolean equals(Object other) { if (! (other instanceof NameValuePair)) { return false; } NameValuePair otherPair = (NameValuePair) other; return name.equals(otherPair.name) && value.equals(otherPair.value); }
/** {@inheritDoc} */ public boolean equals(Object other) { if (! (other instanceof NameValuePair)) { return false; } NameValuePair otherPair = (NameValuePair) other; return name.equals(otherPair.name) && value.equals(otherPair.value); }
/** {@inheritDoc} */ public boolean equals(Object other) { if (! (other instanceof NameValuePair)) { return false; } NameValuePair otherPair = (NameValuePair) other; return name.equals(otherPair.name) && value.equals(otherPair.value); }
/** {@inheritDoc} */ public boolean equals(Object other) { if (! (other instanceof NameValuePair)) { return false; } NameValuePair otherPair = (NameValuePair) other; return name.equals(otherPair.name) && value.equals(otherPair.value); }