/guava/guava/src/com/google/common/collect/Lists.java
int start = index * size; checkElementIndex( index, size( ) ) ;
checkElementIndex ( index, size ( ) ) ; int start = index * size;
Partition(List<T> list, int size) { this.list = list; this.size = size; } @Override public List<T> get(int index) { <extra_id_0> int end = Math.min(start + size, list.size()); return list.subList(start, end); } @Override public int size() { return IntMath.divide(list.size(), size, RoundingMode.CEILING);