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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SingleListBuilderCallback
public SingleListBuilderCallback(List<T> spaces)
getAvailableSize
public int getAvailableSize()
- Specified by:
getAvailableSize in interface ListBuilderCallback<T>
getElements
public List<T> getElements(int offset,
int maxResults)
- Specified by:
getElements in interface ListBuilderCallback<T>
Copyright © 2003–2015 Atlassian. All rights reserved.