public static class AbbreviatedGroupChecker.Abbreviations extends Object
Constructor and Description |
---|
AbbreviatedGroupChecker.Abbreviations()
Initializes the abbreviationa
|
Modifier and Type | Method and Description |
---|---|
void |
add(String abbreviation)
Adds an abbreviation to the abbreviations
|
boolean |
contains(String abbreviation)
Gets whether the abbreviations contain the specified abbreviation
|
boolean |
equals(Object obj) |
List<String> |
getList()
Gets the list of abbreviations
|
int |
hashCode() |
static AbbreviatedGroupChecker.Abbreviations |
parse(String representation)
Parses the list of abbreviations from a string.
|
String |
toString() |
public AbbreviatedGroupChecker.Abbreviations()
public static AbbreviatedGroupChecker.Abbreviations parse(String representation)
representation
- the string representation of the abbreviations, a list of
abbreviations delimited by comma characterpublic void add(String abbreviation)
abbreviation
- the abbreviation to be addedpublic List<String> getList()
public boolean contains(String abbreviation)
abbreviation
- the target abbreviation