Package fmpp.models

Class 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.
    • Field Summary

      • Fields inherited from interface freemarker.template.TemplateModel

        NOTHING
    • Method Summary

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

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

      • TemplateModelListSequence

        public TemplateModelListSequence​(java.util.List list)
    • 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
      • getWrappedObject

        public java.lang.Object getWrappedObject()