|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlive.dto.NameList
Stores the elements of a name list. This is essentially the same as
Group
, but is made a separate type so as to not muddle the
purpose of Group with different uses, because NameLists are not guranteed to
have a list of Guest names, just a list of Strings that may or may not have
any meaning.
Field Summary | |
private LinkedList |
elements
|
private String |
listName
|
Constructor Summary | |
NameList(String listName)
Creates a List and sets its name. |
Method Summary | |
void |
addElement(String elementToAdd)
Adds an element to this list. |
LinkedList |
getElements()
Returns the list of elements. |
String |
getListName()
Gets the name of this list. |
Iterator |
iterator()
An iterator into the elements in the list. |
ListIterator |
listIterator()
Returns a ListIterator that can be used to get every element of the list. |
void |
setListName(String listName)
Sets the name of this group. |
String |
toString()
Returns a readable version of the list in the format: [List name: [member, member, ...]] |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private String listName
private LinkedList elements
Constructor Detail |
public NameList(String listName)
listName
- The name of this listMethod Detail |
public String getListName()
public void setListName(String listName)
listName
- The group name to use.public void addElement(String elementToAdd)
elementToAdd
- The element to add to this list.public ListIterator listIterator()
public Iterator iterator()
public LinkedList getElements()
public String toString()
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |