Class RandomizedSelection.MyIterator
java.lang.Object
se.liu.ida.hefquin.base.utils.RandomizedSelection.MyIterator
- All Implemented Interfaces:
Iterator<T>
- Enclosing class:
RandomizedSelection<T extends RandomizedSelection.WeightedObject>
-
Field Details
-
map
-
random
-
total
protected final double total
-
-
Constructor Details
-
MyIterator
-
-
Method Details
-
hasNext
public boolean hasNext()- Specified by:
hasNext
in interfaceIterator<T extends RandomizedSelection.WeightedObject>
-
next
- Specified by:
next
in interfaceIterator<T extends RandomizedSelection.WeightedObject>
-