Record Class RealmsNotification.UrlButton
java.lang.Object
java.lang.Record
com.mojang.realmsclient.dto.RealmsNotification.UrlButton
- Enclosing class:
RealmsNotification
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateUrlButton(String url, RealmsText urlText) Creates an instance of aUrlButtonrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static RealmsNotification.UrlButtonparse(JsonObject jsonObject) final StringtoString()Returns a string representation of this record class.url()Returns the value of theurlrecord component.urlText()Returns the value of theurlTextrecord component.
-
Field Details
-
url
The field for theurlrecord component. -
urlText
The field for theurlTextrecord component. -
URL
- See Also:
-
URL_TEXT
- See Also:
-
-
Constructor Details
-
UrlButton
Creates an instance of aUrlButtonrecord class.- Parameters:
url- the value for theurlrecord componenturlText- the value for theurlTextrecord component
-
-
Method Details
-
parse
-
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). -
url
Returns the value of theurlrecord component.- Returns:
- the value of the
urlrecord component
-
urlText
Returns the value of theurlTextrecord component.- Returns:
- the value of the
urlTextrecord component
-