com.anasoft.os.daofusion.util
Class SimpleListContainer<T>

java.lang.Object
  extended by com.anasoft.os.daofusion.util.SimpleListContainer<T>
Type Parameters:
T - Type of the object the container works with.
Direct Known Subclasses:
AbstractCriterionGroup

public abstract class SimpleListContainer<T>
extends java.lang.Object

Utility class intended to ease the implementation of simple list-based object containers.

Author:
vojtech.szocs

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

SimpleListContainer

public SimpleListContainer()
Method Detail

add

public SimpleListContainer<T> add(T object)
Adds the given object to this container.

Parameters:
object - Object to add.
Returns:
this for method chaining.

clear

public void clear()
Clears the list of objects.


getObjectList

public java.util.List<T> getObjectList()
Returns the list of objects.

Note that the method returns an unmodifiable list to prevent further list manipulation.

Returns:
Object list.


Copyright © 2008-2009 ANASOFT and contributors. All Rights Reserved.