|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.anasoft.os.daofusion.util.SimpleListContainer<T>
T - Type of the object the container works with.public abstract class SimpleListContainer<T>
Utility class intended to ease the implementation of simple list-based object containers.
| Constructor Summary | |
|---|---|
SimpleListContainer()
|
|
| Method Summary | |
|---|---|
SimpleListContainer<T> |
add(T object)
Adds the given object to this container. |
void |
clear()
Clears the list of objects. |
java.util.List<T> |
getObjectList()
Returns the list of objects. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleListContainer()
| Method Detail |
|---|
public SimpleListContainer<T> add(T object)
object - Object to add.
public void clear()
public java.util.List<T> getObjectList()
Note that the method returns an unmodifiable list to prevent further list manipulation.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||