public static class BinPacking.ListPacker<T>
extends java.lang.Object
Constructor and Description |
---|
ListPacker(long targetWeight,
int lookback,
boolean largestBinFirst) |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.util.List<T>> |
pack(java.lang.Iterable<T> items,
java.util.function.Function<T,java.lang.Long> weightFunc) |
java.util.List<java.util.List<T>> |
packEnd(java.util.List<T> items,
java.util.function.Function<T,java.lang.Long> weightFunc) |