randoop.util
Class TypeToObjectMap

Object
  extended by TypeToObjectMap

public class TypeToObjectMap
extends Object

Maintains a map from types to objects of that type. The objects stored are intended to be objects resulting from arbitrary execution of code under test in Randoop. This class ensures that no code of the objects stored is called, other than the final native method getClass().


Nested Class Summary
Modifier and Type Class and Description
static class TypeToObjectMap.HotPotato
           
 
Field Summary
Modifier and Type Field and Description
 Map<Class<?>,List<TypeToObjectMap.HotPotato>> theMap
           
 
Constructor Summary
Constructor and Description
TypeToObjectMap()
           
 
Method Summary
Modifier and Type Method and Description
 void addObject(Object runtimeObject)
          Requires: runtimeObject is not null.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

theMap

public final Map<Class<?>,List<TypeToObjectMap.HotPotato>> theMap
Constructor Detail

TypeToObjectMap

public TypeToObjectMap()
Method Detail

addObject

public void addObject(Object runtimeObject)
Requires: runtimeObject is not null. Effects: adds runtimeObject to the map, at key T where T = runtimeObject.getClass().