/** * Does this connection have a previous page of data? * * @return {@code true} if there is a previous page of data for this connection, {@code false} otherwise. */ public boolean hasPrevious() { return !isBlank(getPreviousPageUrl()) && !isSameCursor(); }
/** * Does this connection have a next page of data? * * @return {@code true} if there is a next page of data for this connection, {@code false} otherwise. */ public boolean hasNext() { return !isBlank(getNextPageUrl()) && !getData().isEmpty() && !isSameCursor(); }