Package de.rwth.swc.coffee4j.model
Class Parameter
- java.lang.Object
-
- de.rwth.swc.coffee4j.model.Parameter
-
public final class Parameter extends java.lang.ObjectRepresents 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.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object object)java.lang.StringgetName()java.util.List<Value>getValues()inthashCode()static Parameter.Builderparameter(java.lang.String name)intsize()java.lang.StringtoString()
-
-
-
Constructor Detail
-
Parameter
public Parameter(java.lang.String name, java.util.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 java.lang.String getName()
- Returns:
- the name of the parameter. Should be unique inside its input parameter testModel
-
getValues
public java.util.List<Value> getValues()
- Returns:
- all values of this parameter
-
size
public int size()
- Returns:
- the number of values this parameter has
-
equals
public boolean equals(java.lang.Object object)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
parameter
public static Parameter.Builder parameter(java.lang.String name)
-
-