public boolean isAtEnd() { if (spine == null) { return false; } return spine.getPosition() >= spine.size() - 1 && strategy.isAtEnd(); }
/** * Returns if we're at the start of the book, i.e. displaying the title page. * * @return */ public boolean isAtStart() { if (spine == null) { return true; } return spine.getPosition() == 0 && strategy.isAtStart(); }