Class LargePowerSet<T>

java.lang.Object
dev.the_fireplace.annotateddi.impl.datastructure.LargePowerSet<T>
All Implemented Interfaces:
Iterable<Set<T>>

public class LargePowerSet<T> extends Object implements Iterable<Set<T>>
  • Constructor Details

    • LargePowerSet

      public LargePowerSet(Collection<T> inputEntries, int minimumSubsetSize, int maximumSubsetSize)
      Keep the number of entries to a minimum, power sets get large and slow very quickly. If you're able to come up with entries as you process which will result in skipping any remaining subsets containing them, it's worth checking LargePowerSet.LargeIterator.shouldBeRebuiltForPerformance(int) and creating a new LargePowerSet to iterate through if true.
  • Method Details