Пример #1
0
  public boolean isAtEnd() {
    if (spine == null) {
      return false;
    }

    return spine.getPosition() >= spine.size() - 1 && strategy.isAtEnd();
  }
Пример #2
0
  /**
   * 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();
  }