Record Class RealmsNews
java.lang.Object
java.lang.Record
com.mojang.realmsclient.dto.RealmsNews
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRealmsNews(@Nullable String newsLink) Creates an instance of aRealmsNewsrecord 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.@Nullable StringnewsLink()Returns the value of thenewsLinkrecord component.static RealmsNewsfinal StringtoString()Returns a string representation of this record class.
-
Field Details
-
newsLink
The field for thenewsLinkrecord component. -
LOGGER
private static final org.slf4j.Logger LOGGER
-
-
Constructor Details
-
RealmsNews
Creates an instance of aRealmsNewsrecord class.- Parameters:
newsLink- the value for thenewsLinkrecord 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). -
newsLink
Returns the value of thenewsLinkrecord component.- Returns:
- the value of the
newsLinkrecord component
-