Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.andyshon;
- import java.util.HashSet;
- import java.util.Set;
- /**
- * Created by andys_000 on 02.10.2017.
- */
- public class Driver {
- private int id;
- private String name;
- private String surname;
- private int age;
- private Set busses = new HashSet();
- public Driver() {}
- public void setBusses(Set busses) {
- this.busses = busses;
- }
- public Set getBusses() {
- return busses;
- }
- public void setId(int id) {
- this.id = id;
- }
- public void setName(String name) {
- this.name = name;
- }
- public void setSurname(String surname) {
- this.surname = surname;
- }
- public void setAge(int age) {
- this.age = age;
- }
- public int getId() {
- return id;
- }
- public String getName() {
- return name;
- }
- public String getSurname() {
- return surname;
- }
- public int getAge() {
- return age;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement