Package codes.thischwa.cf.model
Class AbstractSingleResponse<T extends ResponseEntity>
java.lang.Object
codes.thischwa.cf.model.AbstractResponse
codes.thischwa.cf.model.AbstractSingleResponse<T>
- Type Parameters:
T
- The type of the response entity that extendsResponseEntity
.
- Direct Known Subclasses:
RecordSingleResponse
Represents a base abstract response model for handling single response entities within an API
response.
This class extends AbstractResponse
, inheriting common response attributes such as
success status, error messages, and informational messages. It introduces a single generic type
parameter <T>
which extends ResponseEntity
, enforcing type consistency for the
result attribute.
Primary Attribute: result
: Represents the single entity result of the response. This
is a generic type that ensures flexibility and adaptability for different entity models.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
AbstractSingleResponse
public AbstractSingleResponse()
-