Package fmpp.models
Class StringArraySequence
java.lang.Object
fmpp.models.StringArraySequence
- All Implemented Interfaces:
freemarker.template.TemplateModel
,freemarker.template.TemplateSequenceModel
public class StringArraySequence
extends Object
implements freemarker.template.TemplateSequenceModel
Sequence variable implementation that wraps a String[] with relatively low
resource utilization. Warning: it does not copy the wrapped array, so do
not modify that after the model was made!
-
Field Summary
Fields inherited from interface freemarker.template.TemplateModel
NOTHING
-
Constructor Summary
ConstructorsConstructorDescriptionStringArraySequence
(String[] stringArray) Warning: Does not copy the argument array! -
Method Summary
-
Constructor Details
-
StringArraySequence
Warning: Does not copy the argument array!
-
-
Method Details
-
get
public freemarker.template.TemplateModel get(int index) throws freemarker.template.TemplateModelException - Specified by:
get
in interfacefreemarker.template.TemplateSequenceModel
- Throws:
freemarker.template.TemplateModelException
-
size
public int size() throws freemarker.template.TemplateModelException- Specified by:
size
in interfacefreemarker.template.TemplateSequenceModel
- Throws:
freemarker.template.TemplateModelException
-