/** * Gets the values that correspond to the specified axes, in their order. */ public List<String> values(Collection<? extends Axis> axes) { List<String> r = new ArrayList<String>(axes.size()); for (Axis a : axes) r.add(get(a)); return r; }
/** * Gets the values that correspond to the specified axes, in their order. */ public List<String> values(Collection<? extends Axis> axes) { List<String> r = new ArrayList<String>(axes.size()); for (Axis a : axes) r.add(get(a)); return r; }
/** * Gets the values that correspond to the specified axes, in their order. */ public List<String> values(Collection<? extends Axis> axes) { List<String> r = new ArrayList<String>(axes.size()); for (Axis a : axes) r.add(get(a)); return r; }
/** * Gets the values that correspond to the specified axes, in their order. */ public List<String> values(Collection<? extends Axis> axes) { List<String> r = new ArrayList<String>(axes.size()); for (Axis a : axes) { r.add(get(a)); } return r; }
/** * Gets the values that correspond to the specified axes, in their order. */ public List<String> values(Collection<? extends Axis> axes) { List<String> r = new ArrayList<String>(axes.size()); for (Axis a : axes) r.add(get(a)); return r; }
public String get(Axis a) { return get(a.getName()); }
public String get(Axis a) { return get(a.getName()); }
public String get(Axis a) { return get(a.getName()); }
/** * Works like {@link #toString()} but only include the given axes. */ public String toString(Collection<Axis> subset) { if(size()==1 && subset.size()==1) return values().iterator().next(); StringBuilder buf = new StringBuilder(); for (Axis a : subset) { if(buf.length()>0) buf.append(','); buf.append(a.getName()).append('=').append(get(a)); } if(buf.length()==0) buf.append("default"); // special case to avoid 0-length name. return buf.toString(); }
/** * Works like {@link #toString()} but only include the given axes. */ public String toString(Collection<Axis> subset) { if(size()==1 && subset.size()==1) return values().iterator().next(); StringBuilder buf = new StringBuilder(); for (Axis a : subset) { if(buf.length()>0) buf.append(','); buf.append(a.getName()).append('=').append(get(a)); } if(buf.length()==0) buf.append("default"); // special case to avoid 0-length name. return buf.toString(); }
/** * Obtains the continuous unique index number of this {@link Combination} * in the given {@link AxisList}. */ public int toIndex(AxisList axis) { int r = 0; for (Axis a : axis) { r *= a.size(); r += a.indexOf(get(a)); } return r; }
@Override public JDK getJDK() { final Jenkins jenkins = Jenkins.getInstance(); return jenkins != null ? jenkins.getJDK(combination.get("jdk")) : null; }
/** * Obtains the continuous unique index number of this {@link Combination} * in the given {@link AxisList}. */ public int toIndex(AxisList axis) { int r = 0; for (Axis a : axis) { r *= a.size(); r += a.indexOf(get(a)); } return r; }
/** * Obtains the continuous unique index number of this {@link Combination} * in the given {@link AxisList}. */ public int toIndex(AxisList axis) { int r = 0; for (Axis a : axis) { r *= a.size(); r += a.indexOf(get(a)); } return r; }
/** * Obtains the continuous unique index number of this {@link Combination} in * the given {@link AxisList}. */ public int toIndex(AxisList axis) { int r = 0; for (Axis a : axis) { r *= a.size(); r += a.indexOf(get(a)); } return r; }
@Override public JDK getJDK() { return Hudson.getInstance().getJDK(combination.get("jdk")); }
/** * Obtains the continuous unique index number of this {@link Combination} * in the given {@link AxisList}. */ public int toIndex(AxisList axis) { int r = 0; for (Axis a : axis) { r *= a.size(); r += a.indexOf(get(a)); } return r; }
@Override public JDK getJDK() { return Hudson.getInstance().getJDK(combination.get("jdk")); }
@Override public JDK getJDK() { return Hudson.getInstance().getJDK(combination.get("jdk")); }
@Override public JDK getJDK() { return Hudson.getInstance().getJDK(combination.get("jdk")); }