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)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionSlateOptions(File mainDirectory, List<File> mergeDirectories, int loreWrappingWidth, KeyedItemProvider keyedItemProvider) 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.Returns the value of thekeyedItemProviderrecord component.intReturns the value of theloreWrappingWidthrecord component.Returns the value of themainDirectoryrecord component.Returns the value of themergeDirectoriesrecord 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) 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 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
-