Package io.domainlifecycles.spring.http
Class ResponseObject<T>
java.lang.Object
io.domainlifecycles.spring.http.ResponseObject<T>
- Type Parameters:
T- type of returned object (mostly entity)
General http response structure
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classInner Builder for ResponseObject instances. -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> ResponseObject.ResponseObjectBuilder<T>builder()Factory method for ResponseObjectBuilderprotected booleanbooleangetData()inthashCode()voidSet datavoidSet errors.toString()
-
Method Details
-
builder
Factory method for ResponseObjectBuilder- Type Parameters:
T- type of returned object (mostly entity)- Returns:
- the builder instance of
ResponseObject
-
getData
- Returns:
- the data
-
setData
Set data- Parameters:
data- the data to be set in the ResponseObject
-
getErrors
- Returns:
- the errors
-
setErrors
Set errors.- Parameters:
errors- the errors to be set in the ResponseObject
-
equals
-
canEqual
- Parameters:
other- other Object to check- Returns:
- true, if other is a ResponseObject
-
hashCode
public int hashCode() -
toString
-