Class BinPacking.ListPacker<T>

  • Enclosing class:
    BinPacking

    public static class BinPacking.ListPacker<T>
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      ListPacker​(long targetWeight, int lookback, boolean largestBinFirst)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ListPacker

        public ListPacker​(long targetWeight,
                          int lookback,
                          boolean largestBinFirst)
    • Method Detail

      • packEnd

        public java.util.List<java.util.List<T>> packEnd​(java.util.List<T> items,
                                                         java.util.function.Function<T,​java.lang.Long> weightFunc)
      • pack

        public java.util.List<java.util.List<T>> pack​(java.lang.Iterable<T> items,
                                                      java.util.function.Function<T,​java.lang.Long> weightFunc)