bug fix
This commit is contained in:
parent
3ee70dc392
commit
51b824cfc1
@ -106,6 +106,8 @@ public class MastodonList implements UserList {
|
||||
|
||||
@Override
|
||||
public int compareTo(UserList userlist) {
|
||||
if (userlist.getTimestamp() != getTimestamp())
|
||||
return Long.compare(userlist.getTimestamp(), getTimestamp());
|
||||
return Long.compare(userlist.getId(), getId());
|
||||
}
|
||||
|
||||
|
@ -122,7 +122,9 @@ public class MastodonNotification implements Notification {
|
||||
|
||||
@Override
|
||||
public int compareTo(Notification notification) {
|
||||
return Long.compare(notification.getTimestamp(), getTimestamp());
|
||||
if (notification.getTimestamp() != getTimestamp())
|
||||
return Long.compare(notification.getTimestamp(), getTimestamp());
|
||||
return Long.compare(notification.getId(), getId());
|
||||
}
|
||||
|
||||
|
||||
|
@ -363,7 +363,9 @@ public class MastodonStatus implements Status {
|
||||
|
||||
@Override
|
||||
public int compareTo(Status status) {
|
||||
return Long.compare(status.getTimestamp(), getTimestamp());
|
||||
if (status.getTimestamp() != getTimestamp())
|
||||
return Long.compare(status.getTimestamp(), getTimestamp());
|
||||
return Long.compare(status.getId(), getId());
|
||||
}
|
||||
|
||||
|
||||
|
@ -112,7 +112,9 @@ public class MessageV1 implements Message {
|
||||
|
||||
@Override
|
||||
public int compareTo(Message message) {
|
||||
return Long.compare(message.getTimestamp(), getTimestamp());
|
||||
if (message.getTimestamp() != getTimestamp())
|
||||
return Long.compare(message.getTimestamp(), getTimestamp());
|
||||
return Long.compare(message.getId(), getId());
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -66,7 +66,9 @@ public class NotificationV1 implements Notification {
|
||||
|
||||
@Override
|
||||
public int compareTo(Notification notification) {
|
||||
return Long.compare(notification.getTimestamp(), getTimestamp());
|
||||
if (notification.getTimestamp() != getTimestamp())
|
||||
return Long.compare(notification.getTimestamp(), getTimestamp());
|
||||
return Long.compare(notification.getId(), getId());
|
||||
}
|
||||
|
||||
|
||||
|
@ -337,7 +337,9 @@ public class TweetV1 implements Status {
|
||||
|
||||
@Override
|
||||
public int compareTo(Status status) {
|
||||
return Long.compare(status.getTimestamp(), getTimestamp());
|
||||
if (status.getTimestamp() != getTimestamp())
|
||||
return Long.compare(status.getTimestamp(), getTimestamp());
|
||||
return Long.compare(status.getId(), getId());
|
||||
}
|
||||
|
||||
|
||||
|
@ -126,6 +126,8 @@ public class UserListV1 implements UserList {
|
||||
|
||||
@Override
|
||||
public int compareTo(UserList userlist) {
|
||||
if (userlist.getTimestamp() != getTimestamp())
|
||||
return Long.compare(userlist.getTimestamp(), getTimestamp());
|
||||
return Long.compare(userlist.getId(), getId());
|
||||
}
|
||||
|
||||
|
@ -411,7 +411,9 @@ public class TweetV2 implements Status {
|
||||
|
||||
@Override
|
||||
public int compareTo(Status status) {
|
||||
return Long.compare(status.getTimestamp(), getTimestamp());
|
||||
if (status.getTimestamp() != getTimestamp())
|
||||
return Long.compare(status.getTimestamp(), getTimestamp());
|
||||
return Long.compare(status.getId(), getId());
|
||||
}
|
||||
|
||||
|
||||
|
@ -105,7 +105,9 @@ public class DatabaseMessage implements Message, MessageTable {
|
||||
|
||||
@Override
|
||||
public int compareTo(Message message) {
|
||||
return Long.compare(message.getTimestamp(), getTimestamp());
|
||||
if (message.getTimestamp() != getTimestamp())
|
||||
return Long.compare(message.getTimestamp(), getTimestamp());
|
||||
return Long.compare(message.getId(), getId());
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -99,7 +99,9 @@ public class DatabaseNotification implements Notification, NotificationTable {
|
||||
|
||||
@Override
|
||||
public int compareTo(Notification notification) {
|
||||
return Long.compare(notification.getTimestamp(), getTimestamp());
|
||||
if (notification.getTimestamp() != getTimestamp())
|
||||
return Long.compare(notification.getTimestamp(), getTimestamp());
|
||||
return Long.compare(notification.getId(), getId());
|
||||
}
|
||||
|
||||
|
||||
|
@ -312,7 +312,9 @@ public class DatabaseStatus implements Status, StatusTable, StatusRegisterTable
|
||||
|
||||
@Override
|
||||
public int compareTo(Status status) {
|
||||
return Long.compare(status.getTimestamp(), getTimestamp());
|
||||
if (status.getTimestamp() != getTimestamp())
|
||||
return Long.compare(status.getTimestamp(), getTimestamp());
|
||||
return Long.compare(status.getId(), getId());
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user