Class Paths

java.lang.Object
me.hsgamer.hscore.config.path.impl.Paths

public final class Paths extends Object
Utility to easily create ConfigPath
  • Method Details

    • commented

      public static <T> CommentablePath<T> commented(@NotNull @NotNull ConfigPath<T> path, @NotNull @NotNull String... comments)
      Create a commentable path
      Type Parameters:
      T - path's value type
      Parameters:
      path - the path to the value
      comments - the comment to create
      Returns:
      the commentable path
    • sticky

      public static <T> StickyConfigPath<T> sticky(@NotNull @NotNull ConfigPath<T> path)
      Create a sticky config path
      Type Parameters:
      T - the type of the value
      Parameters:
      path - the path to the value
      Returns:
      the sticky config path
    • booleanPath

      public static BooleanConfigPath booleanPath(String path, boolean def)
      Create a config path
      Parameters:
      path - the path to the value
      def - the default value if it's not found
      Returns:
      the config path
    • doublePath

      public static DoubleConfigPath doublePath(String path, Double def)
      Create a config path
      Parameters:
      path - the path to the value
      def - the default value if it's not found
      Returns:
      the config path
    • floatPath

      public static FloatConfigPath floatPath(String path, Float def)
      Create a config path
      Parameters:
      path - the path to the value
      def - the default value if it's not found
      Returns:
      the config path
    • integerPath

      public static IntegerConfigPath integerPath(String path, Integer def)
      Create a config path
      Parameters:
      path - the path to the value
      def - the default value if it's not found
      Returns:
      the config path
    • longPath

      public static LongConfigPath longPath(String path, Long def)
      Create a config path
      Parameters:
      path - the path to the value
      def - the default value if it's not found
      Returns:
      the config path
    • simplePath

      public static <T> SimpleConfigPath<T> simplePath(String path, T def)
      Create a config path
      Type Parameters:
      T - the type of the value
      Parameters:
      path - the path to the value
      def - the default value if it's not found
      Returns:
      the config path
    • stringPath

      public static StringConfigPath stringPath(String path, String def)
      Create a config path
      Parameters:
      path - the path to the value
      def - the default value if it's not found
      Returns:
      the config path