code: private static int getPreviousPageOffset(final int offset, final int limit) {
          return hasFullPreviousPage(offset, limit) ? getPreviousFullPageOffset(offset, limit) : getFirstPageOffset();
      }
docs: Gets the previous page offset.
  
  @param offset    the current offset.
  @param limit     the limit.
  @return the previous page offset.