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 anIterator
, but has a fixed item type, can throwTemplateModelException
-s, and has noremove()
method.- Since:
- 2.3.25
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
hasNext()
Similar toIterator.hasNext()
.TemplateHashModelEx2.KeyValuePair
next()
Similar toIterator.next()
.
-
-
-
Method Detail
-
hasNext
boolean hasNext() throws TemplateModelException
Similar toIterator.hasNext()
.- Throws:
TemplateModelException
-
next
TemplateHashModelEx2.KeyValuePair next() throws TemplateModelException
Similar toIterator.next()
.- Returns:
- Not
null
- Throws:
java.util.NoSuchElementException
TemplateModelException
-
-