All Downloads are FREE. Search and download functionalities are using the official Maven repository.

javastrava.util.PagingCallback Maven / Gradle / Ivy

There is a newer version: 1.0.3.6
Show newest version
package javastrava.util;

import java.util.List;

import javastrava.api.v3.service.exception.BadRequestException;
import javastrava.api.v3.service.exception.NotFoundException;

/**
 * 

* Implement this interface in an anonymous inner class, magically get {@link PagingHandler} to work! *

* * @author Dan Shannon * @param * Class of the object in the list to be returned * */ public interface PagingCallback { /** * @param thisPage The page of data to be returned * @return Page of data * @throws NotFoundException If the thing being paged itself throws a {@link NotFoundException} * @throws BadRequestException If the paging instructions are invalid */ public List getPageOfData(final Paging thisPage) throws NotFoundException, BadRequestException; }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy