|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectfreemarker.testcase.models.BooleanList1
public final class BooleanList1
Model for testing the impact of the isEmpty() method on
template list models. Every other method simply delegates to a
FastList model.
BooleanList2| Constructor Summary | |
|---|---|
BooleanList1()
Creates new BooleanList1. |
|
| Method Summary | |
|---|---|
TemplateModel |
getAtIndex(long index)
Get the value corresponding to the given index. |
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 BooleanList1()
| Method Detail |
|---|
public TemplateIteratorModel templateIterator()
throws TemplateModelException
templateIterator in interface TemplateListModel2TemplateModelException - the next item in the list can't be
retrieved, or no next item exists.public void releaseIterator(TemplateIteratorModel iterator)
releaseIterator in interface TemplateListModel2iterator - the iterator to be returned to the object pool
public TemplateModel getAtIndex(long index)
throws TemplateModelException
java.util.Vector.
getAtIndex in interface TemplateIndexedModelindex - the index of the underlying value we're interested in
TemplateModel representing the value for the given index
TemplateModelException - the value could not be determined, possibly
due to an index out-of-bounds, or an otherwise undefined value
public boolean isEmpty()
throws TemplateModelException
List empty?
isEmpty in interface TemplateModeltrue if the list is empty, otherwise false
TemplateModelException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||