Package com.kosdev.kos.commons.util
Class ReasonData
java.lang.Object
com.kosdev.kos.commons.util.json.JsonViewWrapper
com.kosdev.kos.commons.util.ReasonData
Optional data that is associated with a reason code. This contains data and view
fields. When converting to json, the data will be serialized using the specified view.
- Since:
- 1
- Version:
- 1
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorReasonData(Object data, Class<?> view) Create ReasonData with data and view. -
Method Summary
-
Constructor Details
-
ReasonData
public ReasonData()Default constructor- Since:
- 1
-
ReasonData
Create ReasonData with data and view.- Parameters:
data- the dataview- the view to apply to the data- Since:
- 1
-