Package dap4.core.util
Class PowerSet
- java.lang.Object
-
- dap4.core.util.PowerSet
-
public class PowerSet extends Object
Given a set of ranges, {0..1,0..1,0..2}, say, generate all possible lists of values 0,0,0 0,0,1 0,0,2 0,1,0 0,1,1 0,1,2 1,0,0 1,0,1 1,0,2 1,1,0 1,1,1 1,1,2 The ranges are all assumed to run from 0 upto but not including some max, so above would be generated from {2,2,3}.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
generate()
long[][]
getPowerSet()
long
getTotalSize()
static void
main(String[] argv)
String
toString()
-