Package com.mojang.realmsclient.dto
Record Class RealmsJoinInformation.RegionData
java.lang.Object
java.lang.Record
com.mojang.realmsclient.dto.RealmsJoinInformation.RegionData
- All Implemented Interfaces:
ReflectionBasedSerialization
- Enclosing class:
RealmsJoinInformation
public static record RealmsJoinInformation.RegionData(@Nullable RealmsRegion region, @Nullable ServiceQuality serviceQuality)
extends Record
implements ReflectionBasedSerialization
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final @Nullable RealmsRegionThe field for theregionrecord component.private final @Nullable ServiceQualityThe field for theserviceQualityrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionRegionData(@Nullable RealmsRegion region, @Nullable ServiceQuality serviceQuality) Creates an instance of aRegionDatarecord 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 RealmsRegionregion()Returns the value of theregionrecord component.@Nullable ServiceQualityReturns the value of theserviceQualityrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
region
The field for theregionrecord component. -
serviceQuality
The field for theserviceQualityrecord component.
-
-
Constructor Details
-
RegionData
Creates an instance of aRegionDatarecord class.- Parameters:
region- the value for theregionrecord componentserviceQuality- the value for theserviceQualityrecord component
-
-
Method Details
-
toString
Returns 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. -
hashCode
public 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. -
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). -
region
Returns the value of theregionrecord component.- Returns:
- the value of the
regionrecord component
-
serviceQuality
Returns the value of theserviceQualityrecord component.- Returns:
- the value of the
serviceQualityrecord component
-