com.atlassian.crucible.spi.data
Class PreLoadedListWrapperCallback<T>

java.lang.Object
  extended by com.atlassian.crucible.spi.data.PreLoadedListWrapperCallback<T>
Type Parameters:
T -
All Implemented Interfaces:
com.atlassian.plugins.rest.common.expand.entity.ListWrapperCallback<T>

public class PreLoadedListWrapperCallback<T>
extends java.lang.Object
implements com.atlassian.plugins.rest.common.expand.entity.ListWrapperCallback<T>

Used to return ranges from a pre-populated list. When no ranges indexes are specified by the client, the entire list is returned.

Author:
Erik van Zijst

Constructor Summary
PreLoadedListWrapperCallback(java.util.List<T> list)
           
 
Method Summary
 java.util.List<T> getItems(com.atlassian.plugins.rest.common.expand.parameter.Indexes indexes)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PreLoadedListWrapperCallback

public PreLoadedListWrapperCallback(java.util.List<T> list)
Method Detail

getItems

public java.util.List<T> getItems(com.atlassian.plugins.rest.common.expand.parameter.Indexes indexes)
Specified by:
getItems in interface com.atlassian.plugins.rest.common.expand.entity.ListWrapperCallback<T>