Class Parameter


  • public final class Parameter
    extends java.lang.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.
    • 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 be null
        values - the values of the parameter. Must not be, nor contain null, 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:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object