Class TokenGroup

java.lang.Object
jenkins.plugins.openstack.compute.internal.TokenGroup

@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public class TokenGroup extends Object
Split string based on delimiters.
Author:
ogondza.
  • Field Details

    • STRIP_ALL_WHITESPACE

      public static final String STRIP_ALL_WHITESPACE
  • Constructor Details

    • TokenGroup

      public TokenGroup()
  • Method Details

    • from

      @Nonnull public static List<String> from(@Nonnull String input, char delim)
      Get list of tokens separated by delim.
    • from

      @Nonnull public static List<List<String>> from(@Nonnull String input, char delim1, char delim2)
      Get list of lists of tokens separated by delimiters. The inner lists are never empty and contain tokens delimited by delim2. The outer list contains list on the inner lists that ware separated by delim1. IOW, it turns "foo<D1>bar<D2>baz<D1>bax" into "((foo),(bar,baz),(bax))"