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 extends ResponseEntity.
Direct Known Subclasses:
RecordSingleResponse

public abstract class AbstractSingleResponse<T extends ResponseEntity> extends AbstractResponse
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 Details

    • AbstractSingleResponse

      public AbstractSingleResponse()