Class FolderConfigItemKey

java.lang.Object
tech.guilhermekaua.spigotboot.config.reference.key.ReferenceKey
tech.guilhermekaua.spigotboot.config.reference.key.FolderConfigItemKey

public final class FolderConfigItemKey extends ReferenceKey
Key for an item within a @FolderConfig.
  • Constructor Details

    • FolderConfigItemKey

      public FolderConfigItemKey(@NotNull @NotNull String folderConfigName, @NotNull @NotNull String itemId)
  • Method Details

    • getFolderConfigName

      @NotNull public @NotNull String getFolderConfigName()
      Gets the folder config name.
      Returns:
      the folder config name
    • getItemId

      @NotNull public @NotNull String getItemId()
      Gets the item ID.
      Returns:
      the item ID
    • isSingleConfig

      public boolean isSingleConfig()
      Description copied from class: ReferenceKey
      Checks if this key represents a single config.
      Specified by:
      isSingleConfig in class ReferenceKey
      Returns:
      true if single config key
    • isFolderConfigItem

      public boolean isFolderConfigItem()
      Description copied from class: ReferenceKey
      Checks if this key represents a folder config item.
      Specified by:
      isFolderConfigItem in class ReferenceKey
      Returns:
      true if folder config item key
    • getDisplayName

      @NotNull public @NotNull String getDisplayName()
      Description copied from class: ReferenceKey
      Gets a human-readable display name for this key.
      Specified by:
      getDisplayName in class ReferenceKey
      Returns:
      the display name