Record Class DataProviders.GenerationSettings
java.lang.Object
java.lang.Record
net.rebel459.unified.impl.core.DataProviders.GenerationSettings
- Enclosing class:
DataProviders
public static record DataProviders.GenerationSettings(DataProviders.PriorityAndRequirement metadata, boolean autoName, String language, Optional<String> injectedTranslations)
extends Record
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionGenerationSettings(DataProviders.PriorityAndRequirement metadata, boolean autoName, String language, Optional<String> injectedTranslations) Creates an instance of aGenerationSettingsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanautoName()Returns the value of theautoNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theinjectedTranslationsrecord component.language()Returns the value of thelanguagerecord component.metadata()Returns the value of themetadatarecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
DEFAULT
-
-
Constructor Details
-
GenerationSettings
public GenerationSettings(DataProviders.PriorityAndRequirement metadata, boolean autoName, String language, Optional<String> injectedTranslations) Creates an instance of aGenerationSettingsrecord class.- Parameters:
metadata- the value for themetadatarecord componentautoName- the value for theautoNamerecord componentlanguage- the value for thelanguagerecord componentinjectedTranslations- the value for theinjectedTranslationsrecord 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. -
metadata
Returns the value of themetadatarecord component.- Returns:
- the value of the
metadatarecord component
-
autoName
public boolean autoName()Returns the value of theautoNamerecord component.- Returns:
- the value of the
autoNamerecord component
-
language
Returns the value of thelanguagerecord component.- Returns:
- the value of the
languagerecord component
-
injectedTranslations
-