Package fmpp.models

Class StringArraySequence

  • All Implemented Interfaces:
    freemarker.template.TemplateModel, freemarker.template.TemplateSequenceModel

    public class StringArraySequence
    extends java.lang.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

      Constructors 
      Constructor Description
      StringArraySequence​(java.lang.String[] stringArray)
      Warning: Does not copy the argument array!
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      freemarker.template.TemplateModel get​(int index)  
      int size()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • StringArraySequence

        public StringArraySequence​(java.lang.String[] stringArray)
        Warning: Does not copy the argument array!
    • Method Detail

      • 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