public interface TemplateHashModelEx2 extends TemplateHashModelEx
TemplateHashModelEx
. While in many cases that can also be achieved
with TemplateHashModelEx.keys()
and then TemplateHashModel.get(String)
, that has some problems. One is that TemplateHashModel.get(String)
only
accepts string keys, while TemplateHashModelEx.keys()
can return non-string keys too. The other is that calling TemplateHashModelEx.keys()
and then TemplateHashModel.get(String)
for each key can be slower than listing the key-value pairs in one go.Modifier and Type | Interface and Description |
---|---|
static interface |
TemplateHashModelEx2.KeyValuePair
A key-value pair in a hash; used for
TemplateHashModelEx2.KeyValuePairIterator . |
static interface |
TemplateHashModelEx2.KeyValuePairIterator
Iterates over the key-value pairs in a hash.
|
NOTHING
Modifier and Type | Method and Description |
---|---|
TemplateHashModelEx2.KeyValuePairIterator |
keyValuePairIterator() |
keys, size, values
get, isEmpty
TemplateHashModelEx2.KeyValuePairIterator keyValuePairIterator() throws TemplateModelException
null
.TemplateModelException