Package randoop.generation
Class SeedSequences
- java.lang.Object
-
- randoop.generation.SeedSequences
-
public final class SeedSequences extends Object
Provides functionality for creating a set of sequences that create a set of primitive values. Used by sequence generators.
-
-
Field Summary
Fields Modifier and Type Field Description private static List<Object>
primitiveSeeds
The initial pool of primitive values.
-
Constructor Summary
Constructors Modifier Constructor Description private
SeedSequences()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Set<Sequence>
defaultSeeds()
A set of sequences that create primitive values, e.g.(package private) static Set<Object>
getSeeds(Type type)
Returns the set of seed values with the given raw type.static Set<Sequence>
objectsToSeeds(List<Object> seeds)
Given a set of seed objects (each a primitive wrapper), return a set of sequences (each of length one) that create them.
-
-
-
Method Detail
-
defaultSeeds
public static Set<Sequence> defaultSeeds()
A set of sequences that create primitive values, e.g. int i = 0; or String s = "hi";- Returns:
- the default set of seed sequences
-
objectsToSeeds
public static Set<Sequence> objectsToSeeds(List<Object> seeds)
Given a set of seed objects (each a primitive wrapper), return a set of sequences (each of length one) that create them.- Parameters:
seeds
- a list of primitive wrappers- Returns:
- sequences that create the primitives
-
-