Record Class FileBrowserConfig
java.lang.Object
java.lang.Record
com.hypixel.hytale.server.core.ui.browser.FileBrowserConfig
public record FileBrowserConfig(@Nonnull String listElementId, @Nullable String rootSelectorId, @Nullable String searchInputId, @Nullable String currentPathId, @Nonnull List<FileBrowserConfig.RootEntry> roots, @Nonnull Set<String> allowedExtensions, boolean enableRootSelector, boolean enableSearch, boolean enableDirectoryNav, boolean enableMultiSelect, int maxResults, @Nullable FileListProvider customProvider)
extends Record
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic final record -
Field Summary
FieldsModifier and TypeFieldDescriptionThe field for theallowedExtensionsrecord component.private final StringThe field for thecurrentPathIdrecord component.private final FileListProviderThe field for thecustomProviderrecord component.private final booleanThe field for theenableDirectoryNavrecord component.private final booleanThe field for theenableMultiSelectrecord component.private final booleanThe field for theenableRootSelectorrecord component.private final booleanThe field for theenableSearchrecord component.private final StringThe field for thelistElementIdrecord component.private final intThe field for themaxResultsrecord component.private final List<FileBrowserConfig.RootEntry> The field for therootsrecord component.private final StringThe field for therootSelectorIdrecord component.private final StringThe field for thesearchInputIdrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionFileBrowserConfig(String listElementId, String rootSelectorId, String searchInputId, String currentPathId, List<FileBrowserConfig.RootEntry> roots, Set<String> allowedExtensions, boolean enableRootSelector, boolean enableSearch, boolean enableDirectoryNav, boolean enableMultiSelect, int maxResults, FileListProvider customProvider) Creates an instance of aFileBrowserConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theallowedExtensionsrecord component.static FileBrowserConfig.Builderbuilder()Returns the value of thecurrentPathIdrecord component.Returns the value of thecustomProviderrecord component.booleanReturns the value of theenableDirectoryNavrecord component.booleanReturns the value of theenableMultiSelectrecord component.booleanReturns the value of theenableRootSelectorrecord component.booleanReturns the value of theenableSearchrecord 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 thelistElementIdrecord component.intReturns the value of themaxResultsrecord component.roots()Returns the value of therootsrecord component.Returns the value of therootSelectorIdrecord component.Returns the value of thesearchInputIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
listElementId
The field for thelistElementIdrecord component. -
rootSelectorId
The field for therootSelectorIdrecord component. -
searchInputId
The field for thesearchInputIdrecord component. -
currentPathId
The field for thecurrentPathIdrecord component. -
roots
The field for therootsrecord component. -
allowedExtensions
The field for theallowedExtensionsrecord component. -
enableRootSelector
private final boolean enableRootSelectorThe field for theenableRootSelectorrecord component. -
enableSearch
private final boolean enableSearchThe field for theenableSearchrecord component. -
enableMultiSelect
private final boolean enableMultiSelectThe field for theenableMultiSelectrecord component. -
maxResults
private final int maxResultsThe field for themaxResultsrecord component. -
customProvider
The field for thecustomProviderrecord component.
-
-
Constructor Details
-
FileBrowserConfig
public FileBrowserConfig(@Nonnull String listElementId, @Nullable String rootSelectorId, @Nullable String searchInputId, @Nullable String currentPathId, @Nonnull List<FileBrowserConfig.RootEntry> roots, @Nonnull Set<String> allowedExtensions, boolean enableRootSelector, boolean enableSearch, boolean enableDirectoryNav, boolean enableMultiSelect, int maxResults, @Nullable FileListProvider customProvider) Creates an instance of aFileBrowserConfigrecord class.- Parameters:
listElementId- the value for thelistElementIdrecord componentrootSelectorId- the value for therootSelectorIdrecord componentsearchInputId- the value for thesearchInputIdrecord componentcurrentPathId- the value for thecurrentPathIdrecord componentroots- the value for therootsrecord componentallowedExtensions- the value for theallowedExtensionsrecord componentenableRootSelector- the value for theenableRootSelectorrecord componentenableSearch- the value for theenableSearchrecord componentenableDirectoryNav- the value for theenableDirectoryNavrecord componentenableMultiSelect- the value for theenableMultiSelectrecord componentmaxResults- the value for themaxResultsrecord componentcustomProvider- the value for thecustomProviderrecord 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 '=='. -
listElementId
Returns the value of thelistElementIdrecord component.- Returns:
- the value of the
listElementIdrecord component
-
rootSelectorId
Returns the value of therootSelectorIdrecord component.- Returns:
- the value of the
rootSelectorIdrecord component
-
searchInputId
Returns the value of thesearchInputIdrecord component.- Returns:
- the value of the
searchInputIdrecord component
-
currentPathId
Returns the value of thecurrentPathIdrecord component.- Returns:
- the value of the
currentPathIdrecord component
-
roots
Returns the value of therootsrecord component.- Returns:
- the value of the
rootsrecord component
-
allowedExtensions
Returns the value of theallowedExtensionsrecord component.- Returns:
- the value of the
allowedExtensionsrecord component
-
enableRootSelector
public boolean enableRootSelector()Returns the value of theenableRootSelectorrecord component.- Returns:
- the value of the
enableRootSelectorrecord component
-
enableSearch
public boolean enableSearch()Returns the value of theenableSearchrecord component.- Returns:
- the value of the
enableSearchrecord component
-
enableMultiSelect
public boolean enableMultiSelect()Returns the value of theenableMultiSelectrecord component.- Returns:
- the value of the
enableMultiSelectrecord component
-
maxResults
public int maxResults()Returns the value of themaxResultsrecord component.- Returns:
- the value of the
maxResultsrecord component
-
customProvider
Returns the value of thecustomProviderrecord component.- Returns:
- the value of the
customProviderrecord component
-