Created
January 15, 2013 13:41
-
-
Save sebastienblanc/4538725 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public interface PagedResult<T> { | |
PagedResult<T> next(); | |
PagedResult<T> prev(); | |
PagedResult<T> withOffset(int offset); | |
PagedResult<T> withLimit(int limit); | |
List<T> result(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
the
PagedResult
should be delivered by a callback, otherwise it would just block until the response has been processed