Package freemarker.template
Interface TemplateHashModelEx2.KeyValuePairIterator
- All Known Implementing Classes:
MapKeyValuePairIterator
- Enclosing interface:
- TemplateHashModelEx2
public static interface TemplateHashModelEx2.KeyValuePairIterator
Iterates over the key-value pairs in a hash. This is very similar to an
Iterator
, but has a fixed item
type, can throw TemplateModelException
-s, and has no remove()
method.- Since:
- 2.3.25
-
Method Summary
Modifier and TypeMethodDescriptionboolean
hasNext()
Similar toIterator.hasNext()
.next()
Similar toIterator.next()
.
-
Method Details
-
hasNext
Similar toIterator.hasNext()
.- Throws:
TemplateModelException
-
next
Similar toIterator.next()
.- Returns:
- Not
null
- Throws:
NoSuchElementException
TemplateModelException
-