Record Class MCResponse
java.lang.Object
java.lang.Record
com.zenith.feature.queue.mcping.data.MCResponse
-
Constructor Summary
ConstructorsConstructorDescriptionMCResponse(Players players, Version version, String favicon, String description) Creates an instance of aMCResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.favicon()Returns the value of thefaviconrecord component.final inthashCode()Returns a hash code value for this object.players()Returns the value of theplayersrecord component.static StringstripMinecraft(String input) final StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.
-
Constructor Details
-
MCResponse
Creates an instance of aMCResponserecord class.- Parameters:
players- the value for theplayersrecord componentversion- the value for theversionrecord componentfavicon- the value for thefaviconrecord componentdescription- the value for thedescriptionrecord component
-
-
Method Details
-
stripMinecraft
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
players
Returns the value of theplayersrecord component.- Returns:
- the value of the
playersrecord component
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
favicon
Returns the value of thefaviconrecord component.- Returns:
- the value of the
faviconrecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-