All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jamieswhiteshirt.rtree3i.Splitter Maven / Gradle / Ivy

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