Class PrefixRemover


  • @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
    public class PrefixRemover
    extends Object
    A non-regex based remover of string prefixes
    • Method Detail

      • removePrefixes

        public static PrefixRemover removePrefixes​(Set<String> prefixes)
        Specify multiple possible prefixes that should be removed if seen in the string. Takes a set to ensure that the prefixes are unique (this avoids duplication of effort when checking).