Record Class RealmTierConfigurationDto.RealmTierRangeDto
java.lang.Object
java.lang.Record
com.mojang.realmsclient.dto.RealmTierConfigurationDto.RealmTierRangeDto
- All Implemented Interfaces:
ReflectionBasedSerialization
- Enclosing class:
RealmTierConfigurationDto
public static record RealmTierConfigurationDto.RealmTierRangeDto(int min, int max, int defaultValue, @Nullable Integer current)
extends Record
implements ReflectionBasedSerialization
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe field for thecurrentrecord component.private final intThe field for thedefaultValuerecord component.private final intThe field for themaxrecord component.private final intThe field for theminrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionRealmTierRangeDto(int min, int max, int defaultValue, @Nullable Integer current) Creates an instance of aRealmTierRangeDtorecord class. -
Method Summary
Modifier and TypeMethodDescriptioncurrent()Returns the value of thecurrentrecord component.intReturns the value of thedefaultValuerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intmax()Returns the value of themaxrecord component.intmin()Returns the value of theminrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
min
The field for theminrecord component. -
max
The field for themaxrecord component. -
defaultValue
The field for thedefaultValuerecord component. -
current
The field for thecurrentrecord component.
-
-
Constructor Details
-
RealmTierRangeDto
Creates an instance of aRealmTierRangeDtorecord class.- Parameters:
min- the value for theminrecord componentmax- the value for themaxrecord componentdefaultValue- the value for thedefaultValuerecord componentcurrent- the value for thecurrentrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
min
Returns the value of theminrecord component.- Returns:
- the value of the
minrecord component
-
max
Returns the value of themaxrecord component.- Returns:
- the value of the
maxrecord component
-
defaultValue
Returns the value of thedefaultValuerecord component.- Returns:
- the value of the
defaultValuerecord component
-
current
Returns the value of thecurrentrecord component.- Returns:
- the value of the
currentrecord component
-