Class NESTWorkflowLayout.PartitionIterable<T>

java.lang.Object
de.uni_trier.wi2.procake.gui.objecteditor.nestworkfloweditor.NESTWorkflowLayout.PartitionIterable<T>
Type Parameters:
T - The actual element type.
All Implemented Interfaces:
Iterable<List<List<T>>>
Enclosing class:
NESTWorkflowLayout

public class NESTWorkflowLayout.PartitionIterable<T> extends Object implements Iterable<List<List<T>>>
https://codereview.stackexchange.com/questions/119976/an-iterator-returning-all-possible-partitions-of-a-list-in-java This class implements an Iterable over all partitions of a given list.
Version:
1.6 (Feb 14, 2016 a.k.a. Friend Edition)
Author:
Rodion "rodde" Efremov
  • Constructor Details

    • PartitionIterable

      public PartitionIterable(List<T> allElements, int blocks)
  • Method Details