Record Class RequestFeatureHttpAPIImpl.HttpCheckServerRequest
java.lang.Object
java.lang.Record
pro.gravit.launcher.base.request.RequestFeatureHttpAPIImpl.HttpCheckServerRequest
- Enclosing class:
RequestFeatureHttpAPIImpl
-
Constructor Summary
ConstructorsConstructorDescriptionHttpCheckServerRequest(String username, String serverId, boolean extended) Creates an instance of aHttpCheckServerRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanextended()Returns the value of theextendedrecord component.final inthashCode()Returns a hash code value for this object.serverId()Returns the value of theserverIdrecord component.final StringtoString()Returns a string representation of this record class.username()Returns the value of theusernamerecord component.
-
Constructor Details
-
HttpCheckServerRequest
Creates an instance of aHttpCheckServerRequestrecord class.- Parameters:
username- the value for theusernamerecord componentserverId- the value for theserverIdrecord componentextended- the value for theextendedrecord component
-
-
Method Details
-
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. -
username
Returns the value of theusernamerecord component.- Returns:
- the value of the
usernamerecord component
-
serverId
Returns the value of theserverIdrecord component.- Returns:
- the value of the
serverIdrecord component
-
extended
public boolean extended()Returns the value of theextendedrecord component.- Returns:
- the value of the
extendedrecord component
-