Interface PathString


public interface PathString
The utility class for path in Config
  • Field Details

  • Method Details

    • asArray

      static String[] asArray(String path)
      Get the path as array
      Parameters:
      path - the path
      Returns:
      the path as array
    • concat

      static String[] concat(String[] a1, String[] a2)
      Concatenate two paths
      Parameters:
      a1 - the first path
      a2 - the second path
      Returns:
      the concatenated path
    • join

      static String join(String separator, String... path)
      Join the path with the separator
      Parameters:
      separator - the separator
      path - the path
      Returns:
      the joined path
    • split

      static String[] split(String separator, String path)
      Split the path with the separator
      Parameters:
      separator - the separator
      path - the path
      Returns:
      the split path
    • join

      static Map<String,Object> join(String separator, Map<String[],Object> map)
      Join the path with the separator
      Parameters:
      separator - the separator
      map - the map containing the path
      Returns:
      the map containing the joined path
    • split

      static Map<String[],Object> split(String separator, Map<String,Object> map)
      Split the path with the separator
      Parameters:
      separator - the separator
      map - the map containing the path
      Returns:
      the map containing the split path
    • joinDefault

      static String joinDefault(String... path)
      Join the path with the default separator
      Parameters:
      path - the path
      Returns:
      the joined path
    • splitDefault

      static String[] splitDefault(String path)
      Split the path with the default separator
      Parameters:
      path - the path
      Returns:
      the split path
    • joinDefault

      static Map<String,Object> joinDefault(Map<String[],Object> map)
      Join the path with the default separator
      Parameters:
      map - the map containing the path
      Returns:
      the map containing the joined path
    • splitDefault

      static Map<String[],Object> splitDefault(Map<String,Object> map)
      Split the path with the default separator
      Parameters:
      map - the map containing the path
      Returns:
      the map containing the split path