randoop
Class MappedSequences<T>
Object
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.
Method Summary
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 |
MappedSequences
public MappedSequences()
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.