blob: 98c9bddbafa3e84028543487934fc6acf5412494 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
package design.model;
import java.util.Date;
public abstract class League {
private final int id;
private final String name;
private final Date registrationDate;
private final Date startDate;
private final Date endDate;
private final Golfer owner;
public League(int id, String name, Date registrationDate, Date startDate, Date endDate, Golfer owner) {
this.id = id;
this.name = name;
this.registrationDate = registrationDate;
this.startDate = startDate;
this.endDate = endDate;
this.owner = owner;
}
public int getId() {
return id;
}
public String getName() {
return name;
}
public Date getRegistrationDate() {
return registrationDate;
}
public Date getStartDate() {
return startDate;
}
public Date getEndDate() {
return endDate;
}
public Golfer getOwner() {
return owner;
}
}
|