CensusCommandImpl.java 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /*
  2. * Copyright (c) Andrew Grant of Carrick Software 19/03/2025, 02:00. All rights reserved.
  3. *
  4. */
  5. package scot.carricksoftware.grants.commands.census;
  6. import scot.carricksoftware.grants.domains.census.CensusEntry;
  7. import scot.carricksoftware.grants.domains.places.Place;
  8. import java.time.LocalDate;
  9. import java.util.ArrayList;
  10. import java.util.List;
  11. public class CensusCommandImpl implements CensusCommand {
  12. private Long id;
  13. private LocalDate date;
  14. private List<CensusEntry> censusEntries = new ArrayList<>();
  15. private Place place;
  16. @Override
  17. public Long getId() {
  18. return id;
  19. }
  20. @Override
  21. public void setId(Long id) {
  22. this.id = id;
  23. }
  24. @Override
  25. public LocalDate getDate() {
  26. return date;
  27. }
  28. @Override
  29. public void setDate(LocalDate date) {
  30. this.date = date;
  31. }
  32. @Override
  33. public List<CensusEntry> getCensusEntries() {
  34. return censusEntries;
  35. }
  36. @Override
  37. public void setCensusEntries(List<CensusEntry> censusEntries) {
  38. this.censusEntries = censusEntries;
  39. }
  40. @Override
  41. public Place getPlace() {
  42. return place;
  43. }
  44. @Override
  45. public void setPlace(Place place) {
  46. this.place = place;
  47. }
  48. }