Factory method for Recording list, returns list of Recording objects with page, size preference
@param page the page
@param size the page size
@return the list
@throws IOException unexpected error
197271
public static ResourceList<Recording> list(final int page, final int size) throws IOException {
    	        
        return list(BandwidthClient.getInstance(), page, size);
    }
1099177
public static <T> List<T> page(int pageNo, int pageSize, List<T> list) {
		if (isEmpty(list)) {
			return new ArrayList<>(0);
		}

		int resultSize = list.size();
		// 每页条目数大于总数直接返回所有
		if (resultSize <= pageSize) {
			if (pageNo <= 1) {
				return Collections.unmodifiableList(list);
			} else {
				// 越界直接返回空
				return new ArrayList<>(0);
			}
		}
		final int[] startEnd = PageUtil.transToStartEnd(pageNo, pageSize);
		if (startEnd[1] > resultSize) {
			startEnd[1] = resultSize;
		}
		return list.subList(startEnd[0], startEnd[1]);
	}
566219
public Page<T> nextPage(final Page<T> page) {
        return nextPage(page, Twilio.getRestClient());
    }
642297
public static <E> Page<E> startPage(int pageNum, int pageSize, boolean count) {
        return startPage(pageNum, pageSize, count, null, null);
    }
712936
protected ArrayList<T> createInitializedList(int size) {
		ArrayList<T> list = new ArrayList<T>(size);
		for (int i = 0; i < size; i++)
			list.add(null);
		return list;
	}
301465
public static ResourceList<Error> list(final int page, final int size) throws IOException {
    	        
        return list(BandwidthClient.getInstance(), page, size);
    }
1214417
private static List<String> initialiseResult(int size) {
		final List<String> result = new ArrayList<>(size);
		for (int i = 0; i < size; i++) {
			result.add("");
		}
		return result;
	}
1265952
public function page(int $page = 1, int $size = 20): array
    {
        return $this->select(($page - 1) * $size, $page * $size - 1);
    }
222802
@Override
    public PaginatedList queryForPaginatedList(String statementName, Object parameterObject,
                                               int pageSize) throws DataAccessException {
        return super.queryForPaginatedList(statementName, parameterObject, pageSize);
    }
1113213
private List<Integer> getPageSizes() {

        final String pageSizes = parseOptionalStringValue(XML_ELEMENT_PAGESIZE);
        if (pageSizes != null) {
            String[] pageSizesArray = pageSizes.split("-");
            if (pageSizesArray.length > 0) {
                try {
                    List<Integer> result = new ArrayList<>(pageSizesArray.length);
                    for (int i = 0; i < pageSizesArray.length; i++) {
                        result.add(Integer.valueOf(pageSizesArray[i]));
                    }
                    return result;
                } catch (NumberFormatException e) {
                    LOG.warn(Messages.get().getBundle().key(Messages.LOG_PARSING_PAGE_SIZES_FAILED_1, pageSizes), e);
                }
            }
        }
        return null;
    }
1355979
@Override
  public P readPage(int pageID) {
    try {
      countRead();
      return byteBufferToPage(this.file.getRecordBuffer(pageID));
    } catch (IOException e) {
      throw new RuntimeException("IOException occurred during reading of page " + pageID, e);
    }
  }
169575
public ByteArray readBytes(int size) throws IOException
   {
      byte[] data = new byte[size];
      m_stream.read(data);
      return new ByteArray(data);
   }
959361
def new_page(record, values = [])
      idx = @page_counter
      @page_counter += 1
      mark_page_as_modified(IDListPage.new(self, record, idx, values))
      idx
    end
378360
public static ResourceList<Bridge> list(final BandwidthClient client, final int page, final int size) throws IOException {
    	
        final String resourceUri = client.getUserResourceUri(BandwidthConstants.BRIDGES_URI_PATH);

        final ResourceList<Bridge> bridges = 
        			new ResourceList<Bridge>(page, size, resourceUri, Bridge.class);

        bridges.setClient(client);
        bridges.initialize();
        
        return bridges;
    }
1206550
public PaginatedList<User> list(int page) {
		PaginatedList<User> results = new PaginatedList<User>();
		Criteria criteria = this.dao.newCriteria(User.class).setFirstResult(page * 10).setMaxResults(10)
				.addOrder(Order.asc("name"));
		Criteria counting = this.dao.newCriteria(User.class).setProjection(Projections.countDistinct("id"));
		results.setList(this.dao.findByCriteria(criteria, User.class));
		results.setTotal((Long) counting.uniqueResult());
		return results;
	}
974760
public List<Reference> getReferences(Page page) throws GreenPepperServerException {
        return getReferences(page.getSpaceKey(), page.getTitle());
    }
1203107
public List<Entity> pageForEntityList(Entity where, int page, int numPerPage) throws SQLException {
		return pageForEntityList(where, new Page(page, numPerPage));
	}