use of freemarker.core.CollectionAndSequence in project freemarker by apache.
the class BeanModel method values.
public TemplateCollectionModel values() throws TemplateModelException {
List<Object> values = new ArrayList<Object>(size());
TemplateModelIterator it = keys().iterator();
while (it.hasNext()) {
String key = ((TemplateScalarModel) it.next()).getAsString();
values.add(get(key));
}
return new CollectionAndSequence(new SimpleSequence(values, wrapper));
}
Aggregations