boolean (Object other) { if (this == other) return true; if (other == null || getClass() != other.getClass()) return false; LocationCodeIndexOnly that = (LocationCodeIndexOnly)other; return this.codeIndex == that.codeIndex && this.method.equals(that.method); }