Beispiel #1
0
  public boolean isAtEnd() {
    if (spine == null) {
      return false;
    }

    return spine.getPosition() >= spine.size() - 1 && strategy.isAtEnd();
  }
Beispiel #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();
  }