_MuradPro_

Trip

Sep 28th, 2020
880
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. public class Trip {
  3.     private String date;
  4.     private String time;
  5.     private Line line;
  6.     private Bus bus;
  7.    
  8.    
  9.     public Trip(String date, String time, Line line, Bus bus) {
  10.         this.date = date;
  11.         this.time = time;
  12.         this.line = line;
  13.         this.bus = bus;
  14.     }
  15.  
  16.     public String getDate() {
  17.         return date;
  18.     }
  19.  
  20.  
  21.     public void setDate(String date) {
  22.         this.date = date;
  23.     }
  24.  
  25.  
  26.     public String getTime() {
  27.         return time;
  28.     }
  29.  
  30.  
  31.     public void setTime(String time) {
  32.         this.time = time;
  33.     }
  34.  
  35.  
  36.     public Line getLine() {
  37.         return line;
  38.     }
  39.  
  40.  
  41.     public void setLine(Line line) {
  42.         this.line = line;
  43.     }
  44.  
  45.  
  46.     public Bus getBus() {
  47.         return bus;
  48.     }
  49.  
  50.  
  51.     public void setBus(Bus bus) {
  52.         this.bus = bus;
  53.     }
  54.    
  55. }
RAW Paste Data