Modifier and Type | Method and Description |
---|---|
static <T> List<List<T>> |
pack(Iterable<T> items,
java.util.function.Function<T,Long> weightFunc,
long targetWeight) |
public static <T> List<List<T>> pack(Iterable<T> items, java.util.function.Function<T,Long> weightFunc, long targetWeight)
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.