Guest User

Untitled

a guest
Jan 22nd, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. package org.switchyard.workshop.lab2;
  2.  
  3. import java.util.ArrayList;
  4. import java.util.Date;
  5. import java.util.List;
  6.  
  7. public class IntakeManifest {
  8.  
  9. private Date date;
  10. private String location;
  11. private List<Car> cars = new ArrayList<Car>();
  12.  
  13. public Date getDate() {
  14. return date;
  15. }
  16.  
  17. public IntakeManifest setDate(Date date) {
  18. this.date = date;
  19. return this;
  20. }
  21.  
  22. public String getLocation() {
  23. return location;
  24. }
  25.  
  26. public IntakeManifest setLocation(String location) {
  27. this.location = location;
  28. return this;
  29. }
  30.  
  31. public List<Car> getCars() {
  32. return cars;
  33. }
  34.  
  35. public IntakeManifest setCars(List<Car> cars) {
  36. this.cars = cars;
  37. return this;
  38. }
  39.  
  40. public IntakeManifest addCar(Car car) {
  41. cars.add(car);
  42. return this;
  43. }
  44. }
Add Comment
Please, Sign In to add comment