@Test public void checkRequiredFields() { Set<String> fields = new HashSet<>(); fields.add(DiagnosticMessage.ID_KEY); fields.add(DiagnosticMessage.BUS_KEY); fields.add(DiagnosticMessage.MODE_KEY); assertTrue(DiagnosticRequest.containsRequiredFields(fields)); }
public static boolean containsRequiredFields(Set<String> fields) { return fields.containsAll(sRequiredFields); }
DiagnosticRequest extends DiagnosticMessage { public static boolean containsRequiredFields(Set<String> fields) { return fields.containsAll(sRequiredFields); } }
DiagnosticRequest extends DiagnosticMessage { public static boolean containsRequiredFields(Set<String> fields) { return fields.containsAll(sRequiredFields); } DiagnosticRequest(int busId, int id, int mode);  DiagnosticRequest(int busId, int id, int mode, int pid); protected  DiagnosticRequest(Parcel in); protected  DiagnosticRequest(); }
DiagnosticRequest extends DiagnosticMessage { public static boolean containsRequiredFields(Set<String> fields) { return fields.containsAll(sRequiredFields); } DiagnosticRequest(int busId, int id, int mode);  DiagnosticRequest(int busId, int id, int mode, int pid); protected  DiagnosticRequest(Parcel in); protected  DiagnosticRequest(); void setMultipleResponses(boolean multipleResponses); boolean hasFrequency(); void setFrequency(Double frequency); void setName(String name); boolean getMultipleResponses(); Double getFrequency(); boolean hasName(); String getName(); static boolean containsRequiredFields(Set<String> fields); @Override boolean equals(Object obj); @Override String toString(); @Override void writeToParcel(Parcel out, int flags); }
DiagnosticRequest extends DiagnosticMessage { public static boolean containsRequiredFields(Set<String> fields) { return fields.containsAll(sRequiredFields); } DiagnosticRequest(int busId, int id, int mode);  DiagnosticRequest(int busId, int id, int mode, int pid); protected  DiagnosticRequest(Parcel in); protected  DiagnosticRequest(); void setMultipleResponses(boolean multipleResponses); boolean hasFrequency(); void setFrequency(Double frequency); void setName(String name); boolean getMultipleResponses(); Double getFrequency(); boolean hasName(); String getName(); static boolean containsRequiredFields(Set<String> fields); @Override boolean equals(Object obj); @Override String toString(); @Override void writeToParcel(Parcel out, int flags); static final String ADD_ACTION_KEY; static final String CANCEL_ACTION_KEY; }