
com.jamieswhiteshirt.rtree3i.Splitter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rtree-3i-lite Show documentation
Show all versions of rtree-3i-lite Show documentation
Immutable map applying a spatial index to keys based on R-Trees
The newest version!
package com.jamieswhiteshirt.rtree3i;
import java.util.List;
import java.util.function.Function;
/**
* A function that splits a list of items into groups.
*/
public interface Splitter {
/**
* Splits a list of items into two groups of at least minSize.
* @param entry type
* @param entries list of items to split
* @param minSize min size of each list
* @param boxMapper box mapper applied to entries
* @return groups
*/
Groups split(List entries, int minSize, Function boxMapper);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy