Modifier and Type | Method and Description |
---|---|
E |
get(String name)
Retrieves a member by name.
|
int |
indexOfName(String name)
Returns the position where a member of a given name is found, or -1
if the member is not present.
|
E get(String name)
name
- name of the element to returnList.get(int)
int indexOfName(String name)
name
- name of the element to returnList.indexOf(Object)