Advertisement
andyshon

Driver.java

Oct 4th, 2017
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.96 KB | None | 0 0
  1. package com.andyshon;
  2.  
  3. import java.util.HashSet;
  4. import java.util.Set;
  5.  
  6. /**
  7.  * Created by andys_000 on 02.10.2017.
  8.  */
  9. public class Driver {
  10.     private int id;
  11.     private String name;
  12.     private String surname;
  13.     private int age;
  14.     private Set busses = new HashSet();
  15.  
  16.     public Driver() {}
  17.     public void setBusses(Set busses) {
  18.         this.busses = busses;
  19.     }
  20.     public Set getBusses() {
  21.         return busses;
  22.     }
  23.     public void setId(int id) {
  24.         this.id = id;
  25.     }
  26.     public void setName(String name) {
  27.         this.name = name;
  28.     }
  29.     public void setSurname(String surname) {
  30.         this.surname = surname;
  31.     }
  32.     public void setAge(int age) {
  33.         this.age = age;
  34.     }
  35.     public int getId() {
  36.         return id;
  37.     }
  38.     public String getName() {
  39.         return name;
  40.     }
  41.     public String getSurname() {
  42.         return surname;
  43.     }
  44.     public int getAge() {
  45.         return age;
  46.     }
  47. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement