|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--freemarker.testcase.models.BooleanList2
Model for testing the impact of the isEmpty()
method on
template list models. Every other method simply delegates to a
FastList
model.
BooleanList1
Constructor Summary | |
BooleanList2()
Creates new BooleanList2. |
Method Summary | |
TemplateModel |
getAtIndex(long index)
Retrieves the specified item from the list. |
boolean |
isEmpty()
Is the underlying List empty? |
void |
releaseIterator(TemplateIteratorModel iterator)
Returns the used iterator to the list model. |
TemplateIteratorModel |
templateIterator()
Retrieves an iterator to iterate over this list. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BooleanList2()
Method Detail |
public TemplateIteratorModel templateIterator() throws TemplateModelException
templateIterator
in interface TemplateListModel2
TemplateModelException
- the next item in the list can't be
retrieved, or no next item exists.public void releaseIterator(TemplateIteratorModel iterator)
releaseIterator
in interface TemplateListModel2
iterator
- the iterator to be returned to the object poolpublic TemplateModel getAtIndex(long index) throws TemplateModelException
getAtIndex
in interface TemplateIndexedModel
index
- the index of the item to be retrieved.TemplateModelException
- the specified item in the list can't be
retrieved, or the index is out of bounds.public boolean isEmpty() throws TemplateModelException
List
empty?isEmpty
in interface TemplateModel
true
if the list is empty, otherwise false
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |