Class DynamicWeightedRandomSelectionImpl<T>

  • All Implemented Interfaces:
    WeightedRandomSelection<T>

    class DynamicWeightedRandomSelectionImpl<T>
    extends java.lang.Object
    implements WeightedRandomSelection<T>
    DynamicWeightedRandomSelectionImpl class implements both getNextRandom overloaded methods. Where getNextRandom() method considers all bookies it knows of as candidates, but getNextRandom(Collection selectedNodes) method considers only 'selectedNodes' as candidates.