Package com.atlassian.confluence.core
Class SingleListBuilderCallback<T>
- java.lang.Object
-
- com.atlassian.confluence.core.SingleListBuilderCallback<T>
-
- Type Parameters:
T
-
- All Implemented Interfaces:
ListBuilderCallback<T>
public class SingleListBuilderCallback<T> extends Object implements ListBuilderCallback<T>
A very simple implementation which can be used in the case where you don't actually require paging and you actually have the entire list already.Note that this implementation is not in the spirit of the
ListBuilder
and you should think carefully and be sure this is the best option available to you before using it.
-
-
Constructor Summary
Constructors Constructor Description SingleListBuilderCallback(List<T> spaces)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getAvailableSize()
List<T>
getElements(int offset, int maxResults)
-
-
-
Method Detail
-
getAvailableSize
public int getAvailableSize()
- Specified by:
getAvailableSize
in interfaceListBuilderCallback<T>
-
getElements
public List<T> getElements(int offset, int maxResults)
- Specified by:
getElements
in interfaceListBuilderCallback<T>
-
-