Class GenericSetsPickN<T>
- java.lang.Object
-
- org.spectrumauctions.sats.core.bidlang.generic.SizeOrderedPowerset.GenericSetsPickN<T>
-
- All Implemented Interfaces:
java.util.Iterator<java.util.Map<T,java.lang.Integer>>
public final class GenericSetsPickN<T> extends java.lang.Object implements java.util.Iterator<java.util.Map<T,java.lang.Integer>>- Author:
- Michael Weiss
-
-
Constructor Summary
Constructors Constructor Description GenericSetsPickN(java.util.Map<T,java.lang.Integer> maxQuantities, int target)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasNext()java.util.Map<T,java.lang.Integer>next()
-
-
-
Constructor Detail
-
GenericSetsPickN
public GenericSetsPickN(java.util.Map<T,java.lang.Integer> maxQuantities, int target)
- Parameters:
maxQuantities- The maximum quantities per type to be returned. The iterator of this map has to return the keys in increasing order of prioritytarget- how many items should be picked in total
-
-