|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.xpn.xwiki.criteria.impl.RangeFactory
public class RangeFactory
Helper factory class for creating Range objects in velocity
Field Summary | |
---|---|
static Range |
ALL
The interval that matches the entire list it is applied to. |
static Range |
FIRST
The interval that matches just the first element of the list it is applied to. |
static Range |
LAST
The interval that matches just the last element of the list it is applied to. |
Constructor Summary | |
---|---|
RangeFactory()
|
Method Summary | |
---|---|
static Range |
createAllRange()
Creates a new Range which matches all the elements of the list it is applied to. |
static Range |
createHeadRange(int size)
Creates a new Range starting from 0 and having the specified size. |
static Range |
createRange(int start,
int size)
|
static Range |
createTailRange(int size)
Creates a new Range starting from the end of the list it is applied to and having the specified size. |
static Range |
getALL()
Helper method for accessing ALL static field in velocity |
static Range |
getFIRST()
Helper method for accessing FIRST static field in velocity |
static Range |
getLAST()
Helper method for accessing LAST static field in velocity |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Range ALL
public static final Range FIRST
public static final Range LAST
Constructor Detail |
---|
public RangeFactory()
Method Detail |
---|
public static Range createRange(int start, int size)
Range.Range(int, int)
public static Range createAllRange()
public static Range createHeadRange(int size)
size
elements of the list it is applied to.
size
- The size of the interval
public static Range createTailRange(int size)
size
elements of the list.
size
- The size of the interval
public static Range getALL()
ALL
static field in velocity
public static Range getFIRST()
FIRST
static field in velocity
public static Range getLAST()
LAST
static field in velocity
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |