public abstract class Suffixer extends Object
| Constructor and Description |
|---|
Suffixer() |
| Modifier and Type | Method and Description |
|---|---|
static Suffixer |
createAlphaSuffixer(String name,
String separator,
boolean isBlank1,
boolean isUpper)
Returns an instance that generates alphabetic suffixes a, b, c, ...
|
static Suffixer |
createNumericSuffixer(String name,
String separator,
boolean isBlank1)
Returns an instance that generates numeric suffixes 1, 2, 3, ...
|
abstract List<String> |
createSuffixes(int n)
Returns a list of suffixes according to this object's policy.
|
public abstract List<String> createSuffixes(int n)
n - number of suffixes requiredn-element listpublic static Suffixer createNumericSuffixer(String name, String separator, boolean isBlank1)
name - suffixer nameseparator - string to prepend to all non-blank suffixes,
may be nullisBlank1 - if true, then a request for a single-element
suffix list will be treated specially,
giving an empty stringpublic static Suffixer createAlphaSuffixer(String name, String separator, boolean isBlank1, boolean isUpper)
name - suffixer nameseparator - string to prepend to all non-blank suffixes,
may be nullisBlank1 - if true, then a request for a single-element
suffix list will be treated specially,
giving an empty stringisUpper - true for upper case letters, false for lower caseCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.