This commit is contained in:
tony_all
2023-04-16 19:13:27 +08:00
parent fdaa4a57eb
commit 4b65a2459b
7 changed files with 31 additions and 12 deletions
@@ -8,6 +8,7 @@ import java.util.UUID;
@SuppressWarnings("unused") // API
public class ServerInfo {
public static final UUID NULL_UID = UUID.fromString("00000000-0000-0000-0000-000000000000");
@NotNull
private final UUID uid;
@Nullable
@@ -15,7 +16,7 @@ public class ServerInfo {
private boolean available;
public ServerInfo() {
uid = UUID.fromString("00000000-0000-0000-0000-000000000000");
uid = NULL_UID;
server = null;
}
@@ -47,7 +48,7 @@ public class ServerInfo {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
ServerInfo that = (ServerInfo) o;
return Objects.equals(server, that.server) && Objects.equals(uid, that.uid);
return Objects.equals(uid, that.uid);
}
@Override