1 package com.github.davidmoten.rtree; 2 3 import java.util.List; 4 5 import com.github.davidmoten.rtree.geometry.HasGeometry; 6 import com.github.davidmoten.rtree.geometry.ListPair; 7 8 public interface Splitter { 9 10 /** 11 * Splits a list of items into two lists of at least minSize. 12 * 13 * @param <T> 14 * geometry type 15 * @param items 16 * list of items to split 17 * @param minSize 18 * min size of each list 19 * @return two lists 20 */ 21 <T extends HasGeometry> ListPair<T> split(List<T> items, int minSize); 22 }