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 @Nullable RealmsDescriptionDtoThe field for thedescriptionrecord component.private final RealmsSlotUpdateDtoThe field for theoptionsrecord component.private final @Nullable RegionSelectionPreferenceDtoThe field for theregionSelectionPreferencerecord component.private final List<RealmsSetting> The field for thesettingsrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionRealmsConfigurationDto(RealmsSlotUpdateDto options, List<RealmsSetting> settings, @Nullable RegionSelectionPreferenceDto regionSelectionPreference, @Nullable RealmsDescriptionDto description) Creates an instance of aRealmsConfigurationDtorecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable RealmsDescriptionDtoReturns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.options()Returns the value of theoptionsrecord component.@Nullable RegionSelectionPreferenceDtoReturns the value of theregionSelectionPreferencerecord component.settings()Returns the value of thesettingsrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
options
The field for theoptionsrecord component. -
settings
The field for thesettingsrecord component. -
regionSelectionPreference
@SerializedName("regionSelectionPreference") private final @Nullable RegionSelectionPreferenceDto regionSelectionPreferenceThe field for theregionSelectionPreferencerecord component. -
description
The field for thedescriptionrecord component.
-
-
Constructor Details
-
RealmsConfigurationDto
public RealmsConfigurationDto(RealmsSlotUpdateDto options, List<RealmsSetting> settings, @Nullable RegionSelectionPreferenceDto regionSelectionPreference, @Nullable RealmsDescriptionDto description) Creates an instance of aRealmsConfigurationDtorecord class.- Parameters:
options- the value for theoptionsrecord componentsettings- the value for thesettingsrecord componentregionSelectionPreference- the value for theregionSelectionPreferencerecord componentdescription- the value for thedescriptionrecord component
-
-
Method Details
-
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). -
options
Returns the value of theoptionsrecord component.- Returns:
- the value of the
optionsrecord component
-
settings
Returns the value of thesettingsrecord component.- Returns:
- the value of the
settingsrecord component
-
regionSelectionPreference
@SerializedName("regionSelectionPreference") public @Nullable RegionSelectionPreferenceDto regionSelectionPreference()Returns the value of theregionSelectionPreferencerecord component.- Returns:
- the value of the
regionSelectionPreferencerecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-