fmpp.models
Class TemplateModelListSequence
java.lang.Object
fmpp.models.TemplateModelListSequence
- All Implemented Interfaces:
- freemarker.template.TemplateModel, freemarker.template.TemplateSequenceModel
public class TemplateModelListSequence
- extends java.lang.Object
- implements freemarker.template.TemplateSequenceModel
Sequence that wraps a java.util.List of already wrapped objects
directly, with minimal resource usage. Warning! It does not copy the original
list.
| Fields inherited from interface freemarker.template.TemplateModel |
NOTHING |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TemplateModelListSequence
public TemplateModelListSequence(java.util.List list)
get
public freemarker.template.TemplateModel get(int index)
throws freemarker.template.TemplateModelException
- Specified by:
get in interface freemarker.template.TemplateSequenceModel
- Throws:
freemarker.template.TemplateModelException
size
public int size()
throws freemarker.template.TemplateModelException
- Specified by:
size in interface freemarker.template.TemplateSequenceModel
- Throws:
freemarker.template.TemplateModelException
getWrappedObject
public java.lang.Object getWrappedObject()