public class TLcdAliasNames extends Object
Constructor and Description |
---|
TLcdAliasNames()
Creates a new empty TLcdAliasNames.
|
TLcdAliasNames(String[] aNames,
String[][] aAliasNames)
Creates a new TLcdAliasNames with the given names and aliases.
|
Modifier and Type | Method and Description |
---|---|
int |
findID(String aName)
Finds the index in the list of names for which the name or an alias matches
with a given name.
|
String |
findName(int aIndex)
Finds the name at the given index in the list of names.
|
String[][] |
getAliasNames() |
int |
getCount() |
String[] |
getNames() |
void |
setAliasNames(String[][] aAliasNames)
Sets the list of alias names.
|
void |
setNames(String[] aNames)
Sets the list of names.
|
public TLcdAliasNames()
public TLcdAliasNames(String[] aNames, String[][] aAliasNames)
aNames
- the list of names.aAliasNames
- the corresponding list of aliases. The length of
aAliasNames must be the same as the length of aNames, but the number
of aliases may vary.public int getCount()
public String[] getNames()
public void setNames(String[] aNames)
public String[][] getAliasNames()
public void setAliasNames(String[][] aAliasNames)
public String findName(int aIndex)
aIndex
- the valid index in the list of names.public int findID(String aName)
aName
- the name to look up.