de.danet.an.workflow.api
Interface RangeAccess


public interface RangeAccess

This interface defines paginated access to data.

Author:
mnl

Method Summary
 long itemCount()
          Return the number of items in the underlying list.
 java.util.List items(long start, long end)
          Return the subset of items from start to end.
 

Method Detail

itemCount

public long itemCount()
               throws java.rmi.RemoteException
Return the number of items in the underlying list.

Returns:
the number of items
Throws:
java.rmi.RemoteException - if a system-level error occurs.

items

public java.util.List items(long start,
                            long end)
                     throws java.rmi.RemoteException
Return the subset of items from start to end.

Parameters:
start - the start index (zero based)
end - the end index
Returns:
the selected items
Throws:
java.rmi.RemoteException - if a system-level error occurs.