Skip to content

Instantly share code, notes, and snippets.

@sebastienblanc
Created January 15, 2013 13:41
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sebastienblanc/4538725 to your computer and use it in GitHub Desktop.
Save sebastienblanc/4538725 to your computer and use it in GitHub Desktop.
public interface PagedResult<T> {
PagedResult<T> next();
PagedResult<T> prev();
PagedResult<T> withOffset(int offset);
PagedResult<T> withLimit(int limit);
List<T> result();
}
@matzew
Copy link

matzew commented Jan 15, 2013

the PagedResult should be delivered by a callback, otherwise it would just block until the response has been processed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment