Methods Summary |
---|
private int | find(java.lang.String[] strings, java.lang.String string)Search a String for a string.
for (int i = 0; i < strings.length; i++) {
if (string.equals(strings[i])) {
return i;
}
}
return -1;
|
private int | findDuplicate(java.lang.String[] strings)Check the strings in an array are unique; no duplicates.
for (int i = 0; i < strings.length; i++) {
for (int j = i + 1; j < strings.length; j++) {
if (strings[i].equals(strings[j])) {
return j;
}
}
}
return -1;
|
public java.lang.String | getAction(java.lang.String actionname)Gets the action for the action name.
If the action name appears more than once in the sequence,
then any one of the corresponding actions may be returned.
int index = find(actionnames, actionname);
return (index >= 0) ? actions[index] : null;
|
public java.lang.String | getAction(int index)Gets the action at the specified index.
return actions[index];
|
public java.lang.String | getActionName(java.lang.String action)Gets the action name for an action.
int index = find(actions, action);
return (index >= 0) ? actionnames[index] : null;
|
public java.lang.String | getActionName(int index)Gets the action name at the specified index.
return actionnames[index];
|
public java.lang.String | getLocale()Gets the locale for this set of action names.
return locale;
|
public int | size()Gets the number of pairs of actions and action names.
return actions.length;
|