TemplateHashModelEx2.KeyValuePair (FreeMarker 2.3.35 API)
Description: declaration: package: freemarker.template, interface: TemplateHashModelEx2, interface: KeyValuePair

Package freemarker.template

# Interface TemplateHashModelEx2.KeyValuePair

Enclosing interface:
  TemplateHashModelEx2

public static interface TemplateHashModelEx2.KeyValuePair
A key-value pair in a hash; used for `TemplateHashModelEx2.KeyValuePairIterator`.

Since:
  2.3.25

- ## Method Summary

  Modifier and Type
  Method
  Description
  `TemplateModel`
  `getKey()`
  `TemplateModel`
  `getValue()`

- ## Method Details

  - ### getKey

    TemplateModel getKey() throws TemplateModelException
    Returns:
      Any type of `TemplateModel`, maybe `null` (if the hash entry key is `null`).
    Throws:
      `TemplateModelException`

  - ### getValue

    TemplateModel getValue() throws TemplateModelException
    Returns:
      Any type of `TemplateModel`, maybe `null` (if the hash entry value is `null`).
    Throws:
      `TemplateModelException`