Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.montanha.gerenciador.responses;
- import java.util.ArrayList;
- import java.util.List;
- public class Response<T> {
- private T data;
- private List<String> errors;
- public T getData() {
- return data;
- }
- public void setData(T data) {
- this.data = data;
- }
- public List<String> getErrors() {
- if (this.errors == null) {
- this.errors = new ArrayList<String>();
- }
- return errors;
- }
- public void setErrors(List<String> errors) {
- this.errors = errors;
- }
- public Response() {
- }
- }
Add Comment
Please, Sign In to add comment