Class Combination


  • public final class Combination
    extends Object
    A encapsulation of a mapping from Parameter to Value. Can be used to represent an arbitrary combination or a test input.
    • Method Detail

      • getValue

        public Value getValue​(Parameter parameter)
        Retrieves the value of the specific parameter.
        Parameters:
        parameter - a parameter
        Returns:
        the value to which this parameter is mapped or null if it is not mapped
      • getValue

        public Value getValue​(String parameterName)
        Retrieves the value of the parameter corresponding to the name.
        Parameters:
        parameterName - the name of a parameter. Should be unique in the combination
        Returns:
        the value to which the parameter with this name i mapped or null if there is not parameter with this name
      • getRawValue

        public Object getRawValue​(Parameter parameter)
        The same as getValue(Parameter) only with Value.get() begin called afterwards.
        Parameters:
        parameter - a parameter
        Returns:
        the raw object value to which this parameter is mapped or null if it is not mapped. This may be ambiguous as null can also be a valid value object
      • getRawValue

        public Object getRawValue​(String parameterName)
        The same as getValue(Parameter) only with Value.get() begin called afterwards.
        Parameters:
        parameterName - the name of a parameter. Should be unique in the combination
        Returns:
        the raw object value to which this parameter is mapped or null if it is not mapped. This may be ambiguous as null can also be a valid value object
      • getParameterValueMap

        public Map<Parameter,​Value> getParameterValueMap()
        Returns:
        a copy of the complete map of all parameter value mappings
      • size

        public int size()
        Returns:
        the number of parameters which are mapped to a value
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • contains

        public boolean contains​(Combination otherCombination)
        Checks if this combination contains all parameter-value pairs of otherCombination.
        Parameters:
        otherCombination - another combination
        Returns:
        true if all parameter-value pairs of otherCombination are contained by this. Otherwise, false.