@Override public boolean equals(Object obj) { if(!super.equals(obj) || !(obj instanceof CanMessage)) { return false; } final CanMessage other = (CanMessage) obj; return mId == other.mId && mBusId == other.mBusId && Arrays.equals(mData, other.mData); }
@Override public boolean equals(Object obj) { if(!super.equals(obj) || getClass() != obj.getClass()) { return false; } final NamedVehicleMessage other = (NamedVehicleMessage) obj; return mName.equals(other.mName); }
@Override public boolean equals(Object obj) { if(!super.equals(obj) || !(obj instanceof CommandResponse)) { return false; } final CommandResponse other = (CommandResponse) obj; return Objects.equal(mCommand, other.mCommand) && Objects.equal(mMessage, other.mMessage) && Objects.equal(mStatus, other.mStatus); }
@Override public boolean equals(Object obj) { if(!super.equals(obj) || !(obj instanceof CustomCommandResponse)) { return false; } final CustomCommandResponse other = (CustomCommandResponse) obj; return Objects.equal(command, other.command) && Objects.equal(message, other.message) && Objects.equal(status, other.status); }
@Override public boolean equals(Object obj) { if(!super.equals(obj) || getClass() != obj.getClass()) { return false; } final DiagnosticMessage other = (DiagnosticMessage) obj; return mBusId == other.mBusId && mId == other.mId && mMode == other.mMode && ((!hasPid() && !other.hasPid()) || mPid.equals(other.mPid)) && Arrays.equals(mPayload, other.mPayload); }
@Override public boolean equals(Object obj) { if (!super.equals(obj) || !(obj instanceof CustomCommand)) { return false; } final CustomCommand other = (CustomCommand) obj; return Objects.equal(getCommands(), other.getCommands()); }
@Override public boolean equals(Object obj) { if (!super.equals(obj) || !(obj instanceof Command)) { return false; } final Command other = (Command) obj; return Objects.equal(getCommand(), other.getCommand()) && Objects.equal(getDiagnosticRequest(), other.getDiagnosticRequest()) && Objects.equal(getAction(), other.getAction()) && Objects.equal(getBus(), other.getBus()) && Objects.equal(isEnabled(), other.isEnabled()) && Objects.equal(isBypass(), other.isBypass()) && Objects.equal(getFormat(), other.getFormat()) && Objects.equal(getUnixTime(), other.getUnixTime()); }