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 RealmsRegion
The field for theregion
record component.private final ServiceQuality
The field for theserviceQuality
record component. -
Constructor Summary
ConstructorsConstructorDescriptionRegionData
(RealmsRegion region, ServiceQuality serviceQuality) Creates an instance of aRegionData
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.region()
Returns the value of theregion
record component.Returns the value of theserviceQuality
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
region
The field for theregion
record component. -
serviceQuality
The field for theserviceQuality
record component.
-
-
Constructor Details
-
RegionData
Creates an instance of aRegionData
record class.- Parameters:
region
- the value for theregion
record componentserviceQuality
- the value for theserviceQuality
record 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 theregion
record component.- Returns:
- the value of the
region
record component
-
serviceQuality
Returns the value of theserviceQuality
record component.- Returns:
- the value of the
serviceQuality
record component
-