s
This commit is contained in:
@@ -12,6 +12,7 @@ public class TransactionItemComparator implements Comparator<TransactionItem> {
|
|||||||
if (item1 == null && item2 == null) return 0;
|
if (item1 == null && item2 == null) return 0;
|
||||||
if (item1 == null) return -1;
|
if (item1 == null) return -1;
|
||||||
if (item2 == null) return 1;
|
if (item2 == null) return 1;
|
||||||
|
if (item1.getId() == null && item2.getId() == null) return -1;
|
||||||
if (Objects.equals(item1.getId(), item2.getId())) return 0;
|
if (Objects.equals(item1.getId(), item2.getId())) return 0;
|
||||||
|
|
||||||
// Teraz porównujemy pola userAccount
|
// Teraz porównujemy pola userAccount
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ public class UserAccountComparator implements Comparator<UserAccount> {
|
|||||||
if (ua1 == null && ua2 == null) return 0;
|
if (ua1 == null && ua2 == null) return 0;
|
||||||
if (ua1 == null) return -1;
|
if (ua1 == null) return -1;
|
||||||
if (ua2 == null) return 1;
|
if (ua2 == null) return 1;
|
||||||
|
if (ua1.getId() == null && ua2.getId() == null) return -1;
|
||||||
if (Objects.equals(ua1.getId(), ua2.getId())) return 0;
|
if (Objects.equals(ua1.getId(), ua2.getId())) return 0;
|
||||||
|
|
||||||
String name1 = ua1.getName();
|
String name1 = ua1.getName();
|
||||||
|
|||||||
Reference in New Issue
Block a user