app/controllers/DestinationsController.java
private PaginationHelper initialisePaginiation(Integer rowOffset, Integer profileId, boolean isPublic) {
        int maxSize;
        if (isPublic) {
            maxSize = destinationRepository.getNumPublicDestinations();
        } else {
            maxSize = destinationRepository.getNumPrivateDestinations(profileId);
        }

        return makePagination(rowOffset, maxSize);
    }
/**
     * Initialise a pagination helper
     * @param rowOffset - The first row from which data will be retrieved
     * @param isPublic - If the destination data set is public or private
     * @return paginationHelper - An instance of PaginationHelper model to ease pagination
     */
Initialise a pagination helper
@param rowOffset - The first row from which data will be retrieved
@param isPublic - If the destination data set is public or private
@return paginationHelper - An instance of PaginationHelper model to ease pagination
Initialise a pagination helper @param rowOffset - The first row from which data will be retrieved @param isPublic - If the destination data set is public or private @return paginationHelper - An instance of PaginationHelper model to ease pagination
private PaginationHelper initialisePaginiation(Integer rowOffset, Integer profileId, boolean isPublic) {
        int maxSize;
        if (isPublic) {
            maxSize = destinationRepository.getNumPublicDestinations();
        } else {
            maxSize = destinationRepository.getNumPrivateDestinations(profileId);
        }
        return makePagination(rowOffset, maxSize);
    }
private PaginationHelper initialisePaginiation ( Integer rowOffset , Integer profileId , boolean isPublic ) { int maxSize ; if ( isPublic ) { maxSize = destinationRepository . getNumPublicDestinations ( ) ; } else { maxSize = destinationRepository . getNumPrivateDestinations ( profileId ) ; } return makePagination ( rowOffset , maxSize ) ; }
Initialise a pagination helper
 @param rowOffset - The first row from which data will be retrieved
 @param isPublic - If the destination data set is public or private
 @return paginationHelper - An instance of PaginationHelper model to ease pagination
Initialise a pagination helper @param rowOffset - The first row from which data will be retrieved @param isPublic - If the destination data set is public or private @return paginationHelper - An instance of PaginationHelper model to ease pagination