Add some toast

This commit is contained in:
Alexander Bakker 2017-11-27 21:06:23 +01:00
parent ca68f0525d
commit daf81e02e6
4 changed files with 22 additions and 17 deletions

View file

@ -40,16 +40,16 @@ public class Database {
}
}
public void addKey(DatabaseEntry entry) throws Exception {
public void addKey(DatabaseEntry entry) {
entry.setID(_entries.size() + 1);
_entries.add(entry);
}
public void removeKey(DatabaseEntry entry) throws Exception {
public void removeKey(DatabaseEntry entry) {
_entries.remove(entry);
}
public List<DatabaseEntry> getKeys() throws Exception {
public List<DatabaseEntry> getKeys() {
return _entries;
}
}