S - the type of the itempublic class OrderedComposite<S> extends Object
| Constructor and Description | 
|---|
| OrderedComposite() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | add(S item)Register additional item. | 
| List<? extends S> | getItems()Public getter for the items. | 
| Iterator<S> | iterator()Public getter for the list of items. | 
| Iterator<S> | reverse()Public getter for the list of items in reverse. | 
| void | setItems(List<? extends S> items)Public setter for the listeners. | 
public void setItems(List<? extends S> items)
items - the new itemspublic void add(S item)
item - the itempublic Iterator<S> iterator()
Ordered items come first, followed by any unordered ones.