Class SharedConfigKeyUtils


  • public class SharedConfigKeyUtils
    extends Object
    • Constructor Detail

      • SharedConfigKeyUtils

        public SharedConfigKeyUtils()
    • Method Detail

      • getKeyWithWildcard

        public static String getKeyWithWildcard​(String key,
                                                List<String> wildcards)
        Substitutes the wildcards into the key. The key's wildcards are places where between dots is a single '*' e.g. foo.*.* is a key with two wildcards.
        Parameters:
        key - key in wildcard form ie. foo.*.*
        wildcards - list of wildcard values to replace in key ie. List.of("bar", "baz")
        Returns:
        key with replaced wildcards ie. foo.bar.baz