src/main/java/com/jmsoftware/datastructuresandalgorithms/common/bean/ResponseBodyBean.java
/**
     * Respond data and status is OK.
     *
     * @param <ResponseBodyDataType> the response body data type
     * @param data                   data to be responded to client.
     * @return response body
     */
Respond data and status is OK.
@param  the response body data type
@param data                   data to be responded to client.
@return response body
Respond data and status is OK . @param the response body data type @param data data to be responded to client . @return response body
public static <ResponseBodyDataType> ResponseBodyBean<ResponseBodyDataType> ofSuccess(final ResponseBodyDataType data) {
        return ResponseBodyBean.<ResponseBodyDataType>builder()
                .timestamp(new Date())
                .status(HttpStatus.OK.getCode())
                .message(HttpStatus.OK.getMessage())
                .data(data)
                .build();
    }
public static < ResponseBodyDataType > ResponseBodyBean < ResponseBodyDataType > ofSuccess ( final ResponseBodyDataType data ) { return ResponseBodyBean . < ResponseBodyDataType > builder ( ) . timestamp ( new Date ( ) ) . status ( HttpStatus . OK . getCode ( ) ) . message ( HttpStatus . OK . getMessage ( ) ) . data ( data ) . build ( ) ; }
Respond data and status is OK.
 @param <ResponseBodyDataType> the response body data type
 @param data                   data to be responded to client.
Respond data and status is OK . @param <ResponseBodyDataType > the response body data type @param data data to be responded to client .