Package com.tccc.kos.commons.util
Class ReasonData
java.lang.Object
com.tccc.kos.commons.util.json.JsonViewWrapper
com.tccc.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.0
- Version:
- 2022-12-20
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorReasonData
(Object data, Class<?> view) Create ReasonData with data and view. -
Method Summary
Methods inherited from class com.tccc.kos.commons.util.json.JsonViewWrapper
getData, getView, setData, setView
-
Constructor Details
-
ReasonData
public ReasonData()Default constructor -
ReasonData
Create ReasonData with data and view.- Parameters:
data
- the dataview
- the view to apply to the data
-