Erros.java 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /*
  2. * To change this license header, choose License Headers in Project Properties.
  3. * To change this template file, choose Tools | Templates
  4. * and open the template in the editor.
  5. */
  6. package cache;
  7. import java.util.ArrayList;
  8. /**
  9. *
  10. * @author Juninho Carlos
  11. */
  12. public class Erros {
  13. private ArrayList<Erro> erroCache;
  14. private ArrayList<Erro> erroRed;
  15. public Erros(ArrayList<Erro> erroCache,ArrayList<Erro> erroRed){
  16. this.erroCache = erroCache;
  17. this.erroRed = erroRed;
  18. }
  19. public ArrayList<Erro> getErroCache() {
  20. return erroCache;
  21. }
  22. public void setErroCache(ArrayList<Erro> erroCache) {
  23. this.erroCache = erroCache;
  24. }
  25. public ArrayList<Erro> getErroRed() {
  26. return erroRed;
  27. }
  28. public void setErroRed(ArrayList<Erro> erroRed) {
  29. this.erroRed = erroRed;
  30. }
  31. @Override
  32. public String toString() {
  33. String s = "cache: "+this.erroCache.toString();
  34. if(this.erroRed != null)
  35. s += "\nred: "+ this.erroRed.toString();
  36. return s; //To change body of generated methods, choose Tools | Templates.
  37. }
  38. }