Package com.netscape.cmscore.request
Class ListEnumeration
- java.lang.Object
-
- com.netscape.cmscore.request.ListEnumeration
-
- All Implemented Interfaces:
IRequestVirtualList
public class ListEnumeration extends java.lang.Object implements IRequestVirtualList
-
-
Field Summary
Fields Modifier and Type Field Description protected IDBVirtualList<IDBObj>
list
static org.slf4j.Logger
logger
-
Constructor Summary
Constructors Constructor Description ListEnumeration(IDBVirtualList<IDBObj> list)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCurrentIndex()
Gets the current indexIRequest
getElementAt(int i)
Gets the element at the specified indexint
getSize()
Gets the total size of the result set.int
getSizeAfterJumpTo()
int
getSizeBeforeJumpTo()
-
-
-
Field Detail
-
logger
public static org.slf4j.Logger logger
-
list
protected IDBVirtualList<IDBObj> list
-
-
Constructor Detail
-
ListEnumeration
public ListEnumeration(IDBVirtualList<IDBObj> list)
-
-
Method Detail
-
getElementAt
public IRequest getElementAt(int i)
Description copied from interface:IRequestVirtualList
Gets the element at the specified index- Specified by:
getElementAt
in interfaceIRequestVirtualList
- Parameters:
i
- index of the element- Returns:
- specified request
-
getCurrentIndex
public int getCurrentIndex()
Description copied from interface:IRequestVirtualList
Gets the current index- Specified by:
getCurrentIndex
in interfaceIRequestVirtualList
- Returns:
- current index
-
getSize
public int getSize()
Description copied from interface:IRequestVirtualList
Gets the total size of the result set. Elements of the list are numbered from 0..(size-1)- Specified by:
getSize
in interfaceIRequestVirtualList
- Returns:
- size of the result set
-
getSizeBeforeJumpTo
public int getSizeBeforeJumpTo()
-
getSizeAfterJumpTo
public int getSizeAfterJumpTo()
-
-