Created
February 12, 2018 18:34
-
-
Save AntonioMontanha/f003fa428d98c781e0730eba4ee29a62 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() { | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment