Class PrefixRemover
- java.lang.Object
-
- io.jenkins.plugins.credentials.secretsmanager.config.transformer.name.PrefixRemover
-
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public class PrefixRemover extends Object
A non-regex based remover of string prefixes
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
from(String str)
static PrefixRemover
removePrefix(String prefix)
static PrefixRemover
removePrefixes(Set<String> prefixes)
Specify multiple possible prefixes that should be removed if seen in the string.
-
-
-
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).
-
removePrefix
public static PrefixRemover removePrefix(String prefix)
-
-