Package com.mojang.realmsclient.dto
Record Class RealmsConfigurationDto
java.lang.Object
java.lang.Record
com.mojang.realmsclient.dto.RealmsConfigurationDto
- All Implemented Interfaces:
ReflectionBasedSerialization
public record RealmsConfigurationDto(RealmsSlotUpdateDto options, List<RealmsSetting> settings, @Nullable RegionSelectionPreferenceDto regionSelectionPreference, @Nullable RealmsDescriptionDto description)
extends Record
implements ReflectionBasedSerialization
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final RealmsDescriptionDto
The field for thedescription
record component.private final RealmsSlotUpdateDto
The field for theoptions
record component.private final RegionSelectionPreferenceDto
The field for theregionSelectionPreference
record component.private final List
<RealmsSetting> The field for thesettings
record component. -
Constructor Summary
ConstructorsConstructorDescriptionRealmsConfigurationDto
(RealmsSlotUpdateDto options, List<RealmsSetting> settings, RegionSelectionPreferenceDto regionSelectionPreference, RealmsDescriptionDto description) Creates an instance of aRealmsConfigurationDto
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescription
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.options()
Returns the value of theoptions
record component.Returns the value of theregionSelectionPreference
record component.settings()
Returns the value of thesettings
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
options
The field for theoptions
record component. -
settings
The field for thesettings
record component. -
regionSelectionPreference
@Nullable @SerializedName("regionSelectionPreference") private final RegionSelectionPreferenceDto regionSelectionPreferenceThe field for theregionSelectionPreference
record component. -
description
The field for thedescription
record component.
-
-
Constructor Details
-
RealmsConfigurationDto
public RealmsConfigurationDto(RealmsSlotUpdateDto options, List<RealmsSetting> settings, @Nullable RegionSelectionPreferenceDto regionSelectionPreference, @Nullable RealmsDescriptionDto description) Creates an instance of aRealmsConfigurationDto
record class.- Parameters:
options
- the value for theoptions
record componentsettings
- the value for thesettings
record componentregionSelectionPreference
- the value for theregionSelectionPreference
record componentdescription
- the value for thedescription
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)
. -
options
Returns the value of theoptions
record component.- Returns:
- the value of the
options
record component
-
settings
Returns the value of thesettings
record component.- Returns:
- the value of the
settings
record component
-
regionSelectionPreference
@Nullable @SerializedName("regionSelectionPreference") public RegionSelectionPreferenceDto regionSelectionPreference()Returns the value of theregionSelectionPreference
record component.- Returns:
- the value of the
regionSelectionPreference
record component
-
description
Returns the value of thedescription
record component.- Returns:
- the value of the
description
record component
-