Interface JsonValidatable
public interface JsonValidatable
Interface used by Json classes that can be validated by the
JsonUtils class after
deserialization.-
Method Summary
-
Method Details
-
validate
void validate()Validates this object.Note: This method is required because objects of this class are deserialized with Gson which bypasses setters which can lead to an inconsistent and unexpected state.
- Throws:
IllegalArgumentException- if this object is invalid
-