Guest User

Untitled

a guest
Jan 22nd, 2018
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. package org.switchyard.workshop.lab2;
  2.  
  3. public class Car {
  4.  
  5. public enum Classification {
  6. COMPACT,
  7. MIDSIZE,
  8. FULL,
  9. SPORT
  10. };
  11.  
  12. private String model;
  13. private String vehicleId;
  14. private int mileage;
  15. private Classification classification;
  16. private boolean damaged;
  17.  
  18.  
  19. public String getModel() {
  20. return model;
  21. }
  22.  
  23. public Car setModel(String model) {
  24. this.model = model;
  25. return this;
  26. }
  27.  
  28. public Classification getClassification() {
  29. return classification;
  30. }
  31.  
  32. public Car setClassification(Classification classification) {
  33. this.classification = classification;
  34. return this;
  35. }
  36.  
  37. public int getMileage() {
  38. return mileage;
  39. }
  40.  
  41. public Car setMileage(int mileage) {
  42. this.mileage = mileage;
  43. return this;
  44. }
  45.  
  46. public boolean isDamaged() {
  47. return damaged;
  48. }
  49.  
  50. public Car setDamaged(boolean damaged) {
  51. this.damaged = damaged;
  52. return this;
  53. }
  54.  
  55. public String getVehicleId() {
  56. return vehicleId;
  57. }
  58.  
  59. public Car setVehicleId(String vehicleId) {
  60. this.vehicleId = vehicleId;
  61. return this;
  62. }
  63. }
Add Comment
Please, Sign In to add comment