java.lang.Object
ch.tocco.nice2.optional.address.impl.directives.GetAgeMethod
All Implemented Interfaces:
freemarker.template.TemplateMethodModel, freemarker.template.TemplateMethodModelEx, freemarker.template.TemplateModel

public class GetAgeMethod extends Object implements freemarker.template.TemplateMethodModelEx
Calculates how many years are between param and now
  • Constructor Details

    • GetAgeMethod

      public GetAgeMethod()
  • Method Details

    • exec

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