Class BinPacking.PackingIterable<T>

  • All Implemented Interfaces:
    java.lang.Iterable<java.util.List<T>>
    Enclosing class:
    BinPacking

    public static class BinPacking.PackingIterable<T>
    extends java.lang.Object
    implements java.lang.Iterable<java.util.List<T>>
    • Constructor Summary

      Constructors 
      Constructor Description
      PackingIterable​(java.lang.Iterable<T> iterable, long targetWeight, int lookback, java.util.function.Function<T,​java.lang.Long> weightFunc)  
      PackingIterable​(java.lang.Iterable<T> iterable, long targetWeight, int lookback, java.util.function.Function<T,​java.lang.Long> weightFunc, boolean largestBinFirst)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Iterator<java.util.List<T>> iterator()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Constructor Detail

      • PackingIterable

        public PackingIterable​(java.lang.Iterable<T> iterable,
                               long targetWeight,
                               int lookback,
                               java.util.function.Function<T,​java.lang.Long> weightFunc)
      • PackingIterable

        public PackingIterable​(java.lang.Iterable<T> iterable,
                               long targetWeight,
                               int lookback,
                               java.util.function.Function<T,​java.lang.Long> weightFunc,
                               boolean largestBinFirst)
    • Method Detail

      • iterator

        public java.util.Iterator<java.util.List<T>> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<T>