DataEntry.java 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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 common;
  7. import java.util.ArrayList;
  8. /**
  9. *
  10. * @author EUGENIO CARVALHO
  11. */
  12. public class DataEntry {
  13. protected Long size = 0L;
  14. protected Long Address = 0L;
  15. protected ArrayList<Integer> values = new ArrayList<>();
  16. DataEntry(Long size) {
  17. this.size = size;
  18. }
  19. public Long getAddress() {
  20. return Address;
  21. }
  22. public void SetAddress(Long Address) {
  23. this.Address = Address;
  24. }
  25. public Long getSize() {
  26. return size;
  27. }
  28. public void setSize(Long size) {
  29. this.size = size;
  30. }
  31. public ArrayList<Integer> getValues() {
  32. return values;
  33. }
  34. public void setValues(ArrayList<Integer> values) {
  35. this.values = values;
  36. }
  37. @Override
  38. public String toString() {
  39. return "Size: " + size + " Address: " + Address;
  40. }
  41. }