A convenient implementation of a list. This
object implements
TemplateSequenceModel , using an underlying
java.util.List implementation.
A SimpleSequence can act as a cache for a
TemplateCollectionModel, e.g. one that gets data from a
database. When passed a TemplateCollectionModel as an
argument to its constructor, the SimpleSequence immediately
copies all the elements and discards the TemplateCollectionModel.
This class is thread-safe if you don't call the add method after you
have made the object available for multiple threads.
Note:
As of 2.0, this class is unsynchronized by default.
To obtain a synchronized wrapper, call the
SimpleSequence.synchronizedWrapper method.
version: $Id: SimpleSequence.java,v 1.53 2005/06/21 18:17:54 ddekany Exp $ See Also: SimpleHash See Also: SimpleScalar |