java.lang.Object
ch.tocco.nice2.templating.impl.freemarker.methods.ShuffleMethod
All Implemented Interfaces:
freemarker.template.TemplateMethodModel, freemarker.template.TemplateMethodModelEx, freemarker.template.TemplateModel

public class ShuffleMethod extends Object implements freemarker.template.TemplateMethodModelEx
Method to shuffle any sequence. Usage: `[#assign shuffledSequence = shuffle(mySequence) /]`
  • Constructor Details

    • ShuffleMethod

      public ShuffleMethod()
  • Method Details

    • exec

      public List<Object> exec(List arguments) throws freemarker.template.TemplateModelException
      Specified by:
      exec in interface freemarker.template.TemplateMethodModel
      Specified by:
      exec in interface freemarker.template.TemplateMethodModelEx
      Throws:
      freemarker.template.TemplateModelException