Package dev.aurelium.slate.option
Record Class SlateOptions
java.lang.Object
java.lang.Record
dev.aurelium.slate.option.SlateOptions
public record SlateOptions(File mainDirectory, List<File> mergeDirectories, int loreWrappingWidth, KeyedItemProvider keyedItemProvider, Map<String,ItemMetaParser> itemMetaParsers, boolean removalProtection, boolean isMock)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionSlateOptions(File mainDirectory, List<File> mergeDirectories, int loreWrappingWidth, KeyedItemProvider keyedItemProvider, Map<String, ItemMetaParser> itemMetaParsers, boolean removalProtection, boolean isMock) Creates an instance of aSlateOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic SlateOptionsBuilderbuilder()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisMock()Returns the value of theisMockrecord component.Returns the value of theitemMetaParsersrecord component.Returns the value of thekeyedItemProviderrecord component.intReturns the value of theloreWrappingWidthrecord component.Returns the value of themainDirectoryrecord component.Returns the value of themergeDirectoriesrecord component.booleanReturns the value of theremovalProtectionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SlateOptions
public SlateOptions(File mainDirectory, List<File> mergeDirectories, int loreWrappingWidth, KeyedItemProvider keyedItemProvider, Map<String, ItemMetaParser> itemMetaParsers, boolean removalProtection, boolean isMock) Creates an instance of aSlateOptionsrecord class.- Parameters:
mainDirectory- the value for themainDirectoryrecord componentmergeDirectories- the value for themergeDirectoriesrecord componentloreWrappingWidth- the value for theloreWrappingWidthrecord componentkeyedItemProvider- the value for thekeyedItemProviderrecord componentitemMetaParsers- the value for theitemMetaParsersrecord componentremovalProtection- the value for theremovalProtectionrecord componentisMock- the value for theisMockrecord component
-
-
Method Details
-
builder
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
mainDirectory
Returns the value of themainDirectoryrecord component.- Returns:
- the value of the
mainDirectoryrecord component
-
mergeDirectories
Returns the value of themergeDirectoriesrecord component.- Returns:
- the value of the
mergeDirectoriesrecord component
-
loreWrappingWidth
public int loreWrappingWidth()Returns the value of theloreWrappingWidthrecord component.- Returns:
- the value of the
loreWrappingWidthrecord component
-
keyedItemProvider
Returns the value of thekeyedItemProviderrecord component.- Returns:
- the value of the
keyedItemProviderrecord component
-
itemMetaParsers
Returns the value of theitemMetaParsersrecord component.- Returns:
- the value of the
itemMetaParsersrecord component
-
removalProtection
public boolean removalProtection()Returns the value of theremovalProtectionrecord component.- Returns:
- the value of the
removalProtectionrecord component
-
isMock
public boolean isMock()Returns the value of theisMockrecord component.- Returns:
- the value of the
isMockrecord component
-