public interface TemplateCollectionModelEx extends TemplateCollectionModel
TemplateCollectionModel
. The added extra operations is provided by all
Java Collection
-s, and this interface was added to make that accessible for templates too.
Experimental status warning: This interface is subject to change on non-backward compatible ways, hence, it shouldn't be implemented outside FreeMarker yet.
NOTHING
Modifier and Type | Method and Description |
---|---|
boolean |
contains(TemplateModel item)
Tells if a given value occurs in the collection, accodring the rules of the wrapped collection.
|
boolean |
isEmpty()
Returns if the collection contains any elements.
|
int |
size()
Returns the number items in this collection, or
Integer.MAX_VALUE , if there are more than
Integer.MAX_VALUE items. |
iterator
int size() throws TemplateModelException
Integer.MAX_VALUE
, if there are more than
Integer.MAX_VALUE
items.TemplateModelException
boolean isEmpty() throws TemplateModelException
size() != 0
only in that the exact
number of items need not be calculated.TemplateModelException
boolean contains(TemplateModel item) throws TemplateModelException
?seq_contains(e)
.TemplateModelException