Record Class LocaleRegistration
java.lang.Object
java.lang.Record
net.mcreator.util.locale.LocaleRegistration
public record LocaleRegistration(ResourceBundle resourceBundle, int uiTextsPercentage, int helpTipsPercentage)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionLocaleRegistration(ResourceBundle resourceBundle, int uiTextsPercentage, int helpTipsPercentage) Creates an instance of aLocaleRegistrationrecord 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.intReturns the value of thehelpTipsPercentagerecord component.Returns the value of theresourceBundlerecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of theuiTextsPercentagerecord component.
-
Constructor Details
-
LocaleRegistration
public LocaleRegistration(ResourceBundle resourceBundle, int uiTextsPercentage, int helpTipsPercentage) Creates an instance of aLocaleRegistrationrecord class.- Parameters:
resourceBundle- the value for theresourceBundlerecord componentuiTextsPercentage- the value for theuiTextsPercentagerecord componenthelpTipsPercentage- the value for thehelpTipsPercentagerecord 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. -
resourceBundle
Returns the value of theresourceBundlerecord component.- Returns:
- the value of the
resourceBundlerecord component
-
uiTextsPercentage
public int uiTextsPercentage()Returns the value of theuiTextsPercentagerecord component.- Returns:
- the value of the
uiTextsPercentagerecord component
-
helpTipsPercentage
public int helpTipsPercentage()Returns the value of thehelpTipsPercentagerecord component.- Returns:
- the value of the
helpTipsPercentagerecord component
-