Back to project page diagnostic-tool.
The source code is released under:
Copyright (c) 2014 Ford Motor Company All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are me...
If you think the Android project diagnostic-tool listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.openxc.openxcdiagnostic.diagnostic.pair; //from w w w . j ava 2s . c o m import com.google.common.base.Objects; import com.openxc.messages.DiagnosticRequest; import com.openxc.messages.DiagnosticResponse; public class DiagnosticPair implements Pair { private DiagnosticRequest mRequest; private DiagnosticResponse mResponse; public DiagnosticPair(DiagnosticRequest request, DiagnosticResponse response) { mRequest = request; mResponse = response; } public DiagnosticRequest getRequest() { return mRequest; } public DiagnosticResponse getResponse() { return mResponse; } @Override public boolean equals(Object obj) { if (obj == null) { return false; } final DiagnosticPair other = (DiagnosticPair) obj; return Objects.equal(mRequest, other.mRequest) && mResponse.equals(other.mResponse); } }