Package freemarker.template
Interface TemplateHashModelEx2.KeyValuePairIterator
-
- All Known Implementing Classes:
MapKeyValuePairIterator
- Enclosing interface:
- TemplateHashModelEx2
public static interface TemplateHashModelEx2.KeyValuePairIteratorIterates 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 booleanhasNext()Similar toIterator.hasNext().TemplateHashModelEx2.KeyValuePairnext()Similar toIterator.next().
-
-
-
Method Detail
-
hasNext
boolean hasNext() throws TemplateModelExceptionSimilar toIterator.hasNext().- Throws:
TemplateModelException
-
next
TemplateHashModelEx2.KeyValuePair next() throws TemplateModelException
Similar toIterator.next().- Returns:
- Not
null - Throws:
java.util.NoSuchElementExceptionTemplateModelException
-
-