Record Class ServerDto
java.lang.Object
java.lang.Record
com.djrapitops.plan.delivery.domain.datatransfer.ServerDto
- All Implemented Interfaces:
Comparable<ServerDto>
public record ServerDto(String serverUUID, String serverName, boolean proxy)
extends Record
implements Comparable<ServerDto>
Represents outgoing server information json.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintfinal booleanIndicates whether some other object is "equal to" this one.static ServerDtofromServer(Server server) final inthashCode()Returns a hash code value for this object.booleanproxy()Returns the value of theproxyrecord component.Returns the value of theserverNamerecord component.Returns the value of theserverUUIDrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ServerDto
-
-
Method Details
-
fromServer
-
compareTo
- Specified by:
compareToin interfaceComparable<ServerDto>
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
serverUUID
Returns the value of theserverUUIDrecord component.- Returns:
- the value of the
serverUUIDrecord component
-
serverName
Returns the value of theserverNamerecord component.- Returns:
- the value of the
serverNamerecord component
-
proxy
public boolean proxy()Returns the value of theproxyrecord component.- Returns:
- the value of the
proxyrecord component
-