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>liststatic org.slf4j.Loggerlogger
-
Constructor Summary
Constructors Constructor Description ListEnumeration(IDBVirtualList<IDBObj> list)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCurrentIndex()Gets the current indexIRequestgetElementAt(int i)Gets the element at the specified indexintgetSize()Gets the total size of the result set.intgetSizeAfterJumpTo()intgetSizeBeforeJumpTo()
-
-
-
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:IRequestVirtualListGets the element at the specified index- Specified by:
getElementAtin interfaceIRequestVirtualList- Parameters:
i- index of the element- Returns:
- specified request
-
getCurrentIndex
public int getCurrentIndex()
Description copied from interface:IRequestVirtualListGets the current index- Specified by:
getCurrentIndexin interfaceIRequestVirtualList- Returns:
- current index
-
getSize
public int getSize()
Description copied from interface:IRequestVirtualListGets the total size of the result set. Elements of the list are numbered from 0..(size-1)- Specified by:
getSizein interfaceIRequestVirtualList- Returns:
- size of the result set
-
getSizeBeforeJumpTo
public int getSizeBeforeJumpTo()
-
getSizeAfterJumpTo
public int getSizeAfterJumpTo()
-
-