Package com.mojang.realmsclient.dto
Record Class RealmsNotification.UrlButton
java.lang.Object
java.lang.Record
com.mojang.realmsclient.dto.RealmsNotification.UrlButton
- Enclosing class:
- RealmsNotification
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionUrlButton(String url, RealmsText urlText) Creates an instance of aUrlButtonrecord class.
- 
Method SummaryModifier 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(com.google.gson.JsonObject p_304518_) 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- 
urlThe field for theurlrecord component.
- 
urlTextThe field for theurlTextrecord component.
- 
URL- See Also:
 
- 
URL_TEXT- See Also:
 
 
- 
- 
Constructor Details- 
UrlButtonUrlButton(String url, RealmsText urlText) Creates an instance of aUrlButtonrecord class.- Parameters:
- url- the value for the- urlrecord component
- urlText- the value for the- urlTextrecord component
 
 
- 
- 
Method Details- 
parse
- 
toStringReturns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
- 
hashCodepublic final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
- 
equalsIndicates 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).
- 
urlReturns the value of theurlrecord component.- Returns:
- the value of the urlrecord component
 
- 
urlTextReturns the value of theurlTextrecord component.- Returns:
- the value of the urlTextrecord component
 
 
-