Fix key profile order and clean up KeyProfileAdapter a bit

This commit is contained in:
Alexander Bakker 2017-12-12 01:50:00 +01:00
parent f26dfac1b6
commit 461f321626
7 changed files with 66 additions and 81 deletions

View file

@ -49,6 +49,10 @@ public class Database {
_entries.remove(entry);
}
public void swapKeys(DatabaseEntry entry1, DatabaseEntry entry2) {
Collections.swap(_entries, _entries.indexOf(entry1), _entries.indexOf(entry2));
}
public List<DatabaseEntry> getKeys() {
return Collections.unmodifiableList(_entries);
}