com.atlassian.confluence.core
Class SingleListBuilderCallback<T>

java.lang.Object
  extended by com.atlassian.confluence.core.SingleListBuilderCallback<T>
Type Parameters:
T -
All Implemented Interfaces:
ListBuilderCallback<T>

public class SingleListBuilderCallback<T>
extends java.lang.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
SingleListBuilderCallback(java.util.List<T> spaces)
           
 
Method Summary
 int getAvailableSize()
           
 java.util.List<T> getElements(int offset, int maxResults)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SingleListBuilderCallback

public SingleListBuilderCallback(java.util.List<T> spaces)
Method Detail

getAvailableSize

public int getAvailableSize()
Specified by:
getAvailableSize in interface ListBuilderCallback<T>

getElements

public java.util.List<T> getElements(int offset,
                                     int maxResults)
Specified by:
getElements in interface ListBuilderCallback<T>


Copyright © 2003-2014 Atlassian. All Rights Reserved.