randoop
Class MappedSequences<T>

Object
  extended by MappedSequences<T>
Direct Known Subclasses:
ClassLiterals, PackageLiterals

public class MappedSequences<T>
extends Object

A multimap from keys of type T to sequences. Such a map can be useful to specify sequences that should only be used in specific contexts, for example sequences that should only be used as components when testing a specific class.


Constructor Summary
Constructor and Description
MappedSequences()
           
 
Method Summary
Modifier and Type Method and Description
 void addSequence(T key, Sequence seq)
          Adds a sequence to the set of sequences associated with the given key.
 SimpleList<Sequence> getSequences(T key, Class<?> desiredType)
          Returns the set of sequences (as a list) that are associated with the given key and create values of the desiredType.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MappedSequences

public MappedSequences()
Method Detail

addSequence

public void addSequence(T key,
                        Sequence seq)
Adds a sequence to the set of sequences associated with the given key.


getSequences

public SimpleList<Sequence> getSequences(T key,
                                         Class<?> desiredType)
Returns the set of sequences (as a list) that are associated with the given key and create values of the desiredType.