Class Resolver


  • public class Resolver
    extends Object
    • Constructor Detail

      • Resolver

        public Resolver()
    • Method Detail

      • splitCommas

        public static String[] splitCommas​(String in)
        This takes a comma-separated string and splits it into discrete Strings. You can protect commas as '\,' to prevent splitting it there.
        Parameters:
        in - the string to split apart
        Returns:
        an array of split strings.
      • joinWithCommas

        public static String joinWithCommas​(String... in)
        Takes multiple strings, protects commas as '\,' and then joins them, separated with ', '.
        Parameters:
        in - the array of strings to join with a comma+space.
        Returns:
        the joined and escaped string.