code: private void calculateStrategy(final Strategy strategy, final int o1, final int o2) {
          if (Strategy.OFFSET == strategy) {
              this.offset = o1;
              this.limit = o2;
          } else if (Strategy.PAGES == strategy) {
              this.offset = (o1 * o2) -  o2;
              this.limit = o2;
          }
      }
docs: Determines the offset and limit based on pagination strategy.
  @param strategy the pagination strategy to use
  @param o1 the offset or page number to use
  @param o2 the number of results to limit a result-set to (aka, the size of the page)