Class Parameter
- java.lang.Object
-
- de.rwth.swc.coffee4j.engine.configuration.model.Parameter
-
public final class Parameter extends Object
Represents a parameter form an input parameter testModel for combinatorial testing. As such it has a descriptive and unique name (at least unique inside its input parameter testModel), and a list of arbitrary many values.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classParameter.BuilderRealizes the builder pattern for aParameter.
-
Constructor Summary
Constructors Constructor Description Parameter(String name, Collection<Value> values)Creates a new parameter with the given name and values.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Parameter.BuilderbooleanParameter(String name)static Parameter.BuilderenumParameter(String name, Class<? extends Enum<?>> enumClass)booleanequals(Object object)StringgetName()List<Value>getValues()inthashCode()static Parameter.Builderparameter(String name)intsize()StringtoString()
-
-
-
Constructor Detail
-
Parameter
public Parameter(String name, Collection<Value> values)
Creates a new parameter with the given name and values.- Parameters:
name- the parameters name. Should be unique inside its input parameter testModel. Must not benullvalues- the values of the parameter. Must not be, nor containnull, and there need to be at least two value. Additionally, each value id may only appear once
-
-
Method Detail
-
getName
public String getName()
- Returns:
- the name of the parameter. Should be unique inside its input parameter testModel
-
size
public int size()
- Returns:
- the number of values this parameter has
-
parameter
public static Parameter.Builder parameter(String name)
-
booleanParameter
public static Parameter.Builder booleanParameter(String name)
-
enumParameter
public static Parameter.Builder enumParameter(String name, Class<? extends Enum<?>> enumClass)
-
-