blob: 63f91828e2e40fdfcd86b5a8b9f86b0ffd53316c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
package design.persistence;
import design.model.Golfer;
import java.io.IOException;
import java.io.File;
public interface PersonalDatabase {
static PersonalDatabase instance() {
return JSONPersonalDatabase.instance();
}
Golfer[] getGolfers();
Golfer getGolfer(String name);
void addGolfer(Golfer golfer) throws IOException;
void removeGolfer(Golfer golfer) throws IOException;
void updateGolfer(Golfer golfer) throws IOException;
}
|