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
  • Field Details

    • listElementId

      @Nonnull private final String listElementId
      The field for the listElementId record component.
    • rootSelectorId

      @Nullable private final String rootSelectorId
      The field for the rootSelectorId record component.
    • searchInputId

      @Nullable private final String searchInputId
      The field for the searchInputId record component.
    • currentPathId

      @Nullable private final String currentPathId
      The field for the currentPathId record component.
    • roots

      @Nonnull private final List<FileBrowserConfig.RootEntry> roots
      The field for the roots record component.
    • allowedExtensions

      @Nonnull private final Set<String> allowedExtensions
      The field for the allowedExtensions record component.
    • enableRootSelector

      private final boolean enableRootSelector
      The field for the enableRootSelector record component.
    • enableSearch

      private final boolean enableSearch
      The field for the enableSearch record component.
    • enableDirectoryNav

      private final boolean enableDirectoryNav
      The field for the enableDirectoryNav record component.
    • enableMultiSelect

      private final boolean enableMultiSelect
      The field for the enableMultiSelect record component.
    • maxResults

      private final int maxResults
      The field for the maxResults record component.
    • customProvider

      @Nullable private final FileListProvider customProvider
      The field for the customProvider record 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 a FileBrowserConfig record class.
      Parameters:
      listElementId - the value for the listElementId record component
      rootSelectorId - the value for the rootSelectorId record component
      searchInputId - the value for the searchInputId record component
      currentPathId - the value for the currentPathId record component
      roots - the value for the roots record component
      allowedExtensions - the value for the allowedExtensions record component
      enableRootSelector - the value for the enableRootSelector record component
      enableSearch - the value for the enableSearch record component
      enableDirectoryNav - the value for the enableDirectoryNav record component
      enableMultiSelect - the value for the enableMultiSelect record component
      maxResults - the value for the maxResults record component
      customProvider - the value for the customProvider record component
  • Method Details

    • builder

      public static FileBrowserConfig.Builder builder()
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • listElementId

      @Nonnull public String listElementId()
      Returns the value of the listElementId record component.
      Returns:
      the value of the listElementId record component
    • rootSelectorId

      @Nullable public String rootSelectorId()
      Returns the value of the rootSelectorId record component.
      Returns:
      the value of the rootSelectorId record component
    • searchInputId

      @Nullable public String searchInputId()
      Returns the value of the searchInputId record component.
      Returns:
      the value of the searchInputId record component
    • currentPathId

      @Nullable public String currentPathId()
      Returns the value of the currentPathId record component.
      Returns:
      the value of the currentPathId record component
    • roots

      @Nonnull public List<FileBrowserConfig.RootEntry> roots()
      Returns the value of the roots record component.
      Returns:
      the value of the roots record component
    • allowedExtensions

      @Nonnull public Set<String> allowedExtensions()
      Returns the value of the allowedExtensions record component.
      Returns:
      the value of the allowedExtensions record component
    • enableRootSelector

      public boolean enableRootSelector()
      Returns the value of the enableRootSelector record component.
      Returns:
      the value of the enableRootSelector record component
    • enableSearch

      public boolean enableSearch()
      Returns the value of the enableSearch record component.
      Returns:
      the value of the enableSearch record component
    • enableDirectoryNav

      public boolean enableDirectoryNav()
      Returns the value of the enableDirectoryNav record component.
      Returns:
      the value of the enableDirectoryNav record component
    • enableMultiSelect

      public boolean enableMultiSelect()
      Returns the value of the enableMultiSelect record component.
      Returns:
      the value of the enableMultiSelect record component
    • maxResults

      public int maxResults()
      Returns the value of the maxResults record component.
      Returns:
      the value of the maxResults record component
    • customProvider

      @Nullable public FileListProvider customProvider()
      Returns the value of the customProvider record component.
      Returns:
      the value of the customProvider record component