private static class NameAbbreviator.PatternAbbreviator extends NameAbbreviator
Modifier and Type | Field and Description |
---|---|
private NameAbbreviator.PatternAbbreviatorFragment[] |
fragments
Element abbreviation patterns.
|
Constructor and Description |
---|
PatternAbbreviator(java.util.List<NameAbbreviator.PatternAbbreviatorFragment> fragments)
Create PatternAbbreviator.
|
Modifier and Type | Method and Description |
---|---|
void |
abbreviate(java.lang.String original,
java.lang.StringBuilder destination)
Abbreviates name.
|
getAbbreviator, getDefaultAbbreviator
private final NameAbbreviator.PatternAbbreviatorFragment[] fragments
public PatternAbbreviator(java.util.List<NameAbbreviator.PatternAbbreviatorFragment> fragments)
fragments
- element abbreviation patterns.public void abbreviate(java.lang.String original, java.lang.StringBuilder destination)
abbreviate
in class NameAbbreviator
original
- the original string to abbreviatedestination
- buffer that abbreviated name is appended to