Hi Ingo,

On Fri, Dec 21, 2018 at 5:04 AM Ingo Mahnke <[email protected]> wrote:
>
> Hallo,
> maybe someone can help me.
> I want to write a custom freemarker method.
>
> In my method I receive an object of type 
> "freemarker.core.HashLiteral$SequenceHash".
> I can nothing do with this object. How I can cast this to an e.g. 
> java.util.map?

That class's inheritance hierarchy is as follows:
--> freemarker.template.TemplateHashModelEx2 -->
freemarker.template.TemplateHashModelEx -->
freemarker.template.TemplateHashModel -->
freemarker.template.TemplateModel.

You can find Map-like methods in TemplateHashModel* interfaces, such
as #get(key), #keys(), #values(), #size(), ...

Regards,

Woonsan

>
> Thank you!!!
> Ingo

Reply via email to