SEBSERV-478 review and optimizations

This commit is contained in:
anhefti 2024-01-31 13:37:25 +01:00
parent 7ddbb218e6
commit cd9fcff8f0

View file

@ -431,6 +431,9 @@ public final class ClientConnectionTable implements FullPageMonitoringGUIUpdate
}
private void sortTable() {
// SEBSERV-427 get all selected indices here and
this.sortList.clear();
this.sortList.addAll(this.tableMapping.values());
Collections.sort(this.sortList);
@ -629,12 +632,6 @@ public final class ClientConnectionTable implements FullPageMonitoringGUIUpdate
.thenComparingInt(UpdatableTableItem::thresholdsWeight)
.thenComparing(UpdatableTableItem::getConnectionIdentifier)
.compare(this, other);
// return Comparator.comparing(UpdatableTableItem::getConnectionIdentifier)
// .thenComparingInt(UpdatableTableItem::thresholdsWeight)
// .thenComparingInt(UpdatableTableItem::notificationWeight)
// .thenComparingInt(UpdatableTableItem::statusWeight)
// .compare(this, other);
}
@Override