randoop.util
Class WeightedList

Object
  extended by WeightedList

public class WeightedList
extends Object


Constructor Summary
Constructor and Description
WeightedList()
           
 
Method Summary
Modifier and Type Method and Description
 void add(WeightedElement elt)
           
 WeightedElement getRandomElement()
           
 int getRandomIndex()
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WeightedList

public WeightedList()
Method Detail

add

public void add(WeightedElement elt)

getRandomElement

public WeightedElement getRandomElement()

getRandomIndex

public int getRandomIndex()