Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
Ursprung
84fd56ddcd
Commit
1dcb2641e0
@ -61,14 +61,14 @@ public class Record {
|
||||
tnt.clear();
|
||||
}
|
||||
|
||||
public TNTRecord get(int id) {
|
||||
public TNTRecord get(long id) {
|
||||
for (TNTRecord record : tnt) {
|
||||
if (record.getId() == id) return record;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public void remove(int id) {
|
||||
public void remove(long id) {
|
||||
tnt.removeIf(record -> record.getId() == id);
|
||||
}
|
||||
|
||||
|
@ -40,11 +40,11 @@ public class StoredRecords {
|
||||
records.remove(record);
|
||||
}
|
||||
|
||||
public static void remove(int id) {
|
||||
public static void remove(long id) {
|
||||
records.removeIf(record -> record.getId() == id);
|
||||
}
|
||||
|
||||
public static Record get(int id) {
|
||||
public static Record get(long id) {
|
||||
for (Record record : records) {
|
||||
if (record.getId() == id) return record;
|
||||
}
|
||||
@ -60,5 +60,4 @@ public class StoredRecords {
|
||||
TraceShowManager.clear();
|
||||
RecordStateMachine.postClear();
|
||||
}
|
||||
|
||||
}
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren