|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--freemarker.template.NumericalRange
A class that represents a Range between two integers. inclusive of the end-points. It can be ascending or descending.
Constructor Summary | |
NumericalRange(int left,
int right)
|
Method Summary | |
TemplateModel |
get(int i)
Retrieves the i-th template model in this sequence. |
boolean |
isEmpty()
|
int |
size()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public NumericalRange(int left, int right)
Method Detail |
public TemplateModel get(int i) throws TemplateModelException
TemplateSequenceModel
get
in interface TemplateSequenceModel
public int size()
size
in interface TemplateSequenceModel
freemarker.template.TemplateSequenceModel
public boolean isEmpty()
isEmpty
in interface TemplateModel
freemarker.template.TemplateModel
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |