Package hudson.matrix
Class Combination
- All Implemented Interfaces:
- Serializable,- Cloneable,- Comparable<Combination>,- Map<String,,- String> - NavigableMap<String,,- String> - SortedMap<String,- String> 
A particular combination of 
Axis values.
 For example, when axes are "x={1,2},y={3,4}", then
 [x=1,y=3] is a combination (out of 4 possible combinations)- Author:
- Kohsuke Kawaguchi
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from class java.util.AbstractMapAbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> 
- 
Constructor SummaryConstructorsConstructorDescriptionCombination(AxisList axisList, String... values) Combination(AxisList axisList, List<String> values) Combination(Map<String, String> keyValuePairs) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidclear()intcompareTo(Combination that) digest()Gets the 8 character-wide hash code for this combinationbooleanevalGroovyExpression(AxisList axes, String expression) Evaluates the given Groovy expression with values bound from this combination.booleanevalGroovyExpression(AxisList axes, String expression, groovy.lang.Binding binding) Deprecated.static CombinationfromString(String id) Reverse operation oftoString().voidtoCompactString(AxisList axes) Creates compact string representation suitable for display purpose.intObtains the continuous unique index number of thisCombinationin the givenAxisList.toString()toString(char sep1, char sep2) Converts to the ID string representation:axisName=value,axisName=value,...toString(Collection<Axis> subset) Works liketoString()but only include the given axes.values(Collection<? extends Axis> axes) Gets the values that correspond to the specified axes, in their order.Methods inherited from class java.util.TreeMapceilingEntry, ceilingKey, clone, comparator, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, descendingKeySet, descendingMap, entrySet, firstEntry, firstKey, floorEntry, floorKey, forEach, get, headMap, headMap, higherEntry, higherKey, keySet, lastEntry, lastKey, lowerEntry, lowerKey, merge, navigableKeySet, pollFirstEntry, pollLastEntry, putIfAbsent, replace, replace, replaceAll, size, subMap, subMap, tailMap, tailMap, valuesMethods inherited from class java.util.AbstractMapequals, hashCode, isEmpty
- 
Constructor Details- 
Combination
- 
Combination
- 
Combination
 
- 
- 
Method Details- 
get
- 
toIndexObtains the continuous unique index number of thisCombinationin the givenAxisList.
- 
evalGroovyExpressionEvaluates the given Groovy expression with values bound from this combination.For example, if this combination is a=X,b=Y, then expressions like a=="X"would evaluate to true.
- 
evalGroovyExpression@Deprecated public boolean evalGroovyExpression(AxisList axes, String expression, groovy.lang.Binding binding) Deprecated.as of 1.528 UseFilterScript.apply(hudson.matrix.MatrixBuild.MatrixBuildExecution, Combination)- Since:
- 1.515
- See Also:
 
- 
compareTo- Specified by:
- compareToin interface- Comparable<Combination>
 
- 
toStringWorks liketoString()but only include the given axes.
- 
valuesGets the values that correspond to the specified axes, in their order.
- 
toStringConverts to the ID string representation:axisName=value,axisName=value,...- Parameters:
- sep1- The separator between multiple axes.
- sep2- The separator between axis name and value.
 
- 
toString- Overrides:
- toStringin class- AbstractMap<String,- String> 
 
- 
digestGets the 8 character-wide hash code for this combination
- 
fromStringReverse operation oftoString().
- 
toCompactStringCreates compact string representation suitable for display purpose.The string is made compact by looking for Axiswhose values are unique, and omit the axis name.
- 
clearpublic void clear()
- 
putAll
- 
put
- 
remove
 
- 
FilterScript.apply(hudson.matrix.MatrixBuild.MatrixBuildExecution, Combination)