public List<String> superGetValues() { return super.getValues(); }
public String value(int index) { return getValues().get(index); }
public Iterator<String> iterator() { return getValues().iterator(); }
public Iterator<String> iterator() { return getValues().iterator(); }
public String value(int index) { return getValues().get(index); }
public Iterator<String> iterator() { return getValues().iterator(); }
public int size() { return getValues().size(); }
public int size() { return getValues().size(); }
public String value(int index) { return getValues().get(index); }
public String value(int index) { return getValues().get(index); }
public int size() { return getValues().size(); }
public int size() { return getValues().size(); }
public Iterator<String> iterator() { return getValues().iterator(); }
public String value(int index) { return getValues().get(index); }
public Iterator<String> iterator() { return getValues().iterator(); }
/** * List up all the possible combinations of this list. */ public Iterable<Combination> list() { List<Set<String>> axesList = Lists.newArrayList(); for (Axis axis : this) axesList.add(new LinkedHashSet<String>(axis.getValues())); return Iterables.transform(Sets.cartesianProduct(axesList), new Function<List<String>, Combination>() { public Combination apply(@Nullable List<String> strings) { assert strings != null; return new Combination(AxisList.this, strings); } }); }
/** * Previously we used to persist {@link Axis}, but now those are divided into subtypes. * So upon deserialization, resolve to the proper type. */ public Object readResolve() { if (getClass()!=Axis.class) return this; if (getName().equals("jdk")) return new JDKAxis(getValues()); if (getName().equals("label")) return new LabelAxis(getName(),getValues()); return new TextAxis(getName(),getValues()); }
/** * Previously we used to persist {@link Axis}, but now those are divided into subtypes. * So upon deserialization, resolve to the proper type. */ public Object readResolve() { if (getClass()!=Axis.class) return this; if (getName().equals("jdk")) return new JDKAxis(getValues()); if (getName().equals("label")) return new LabelAxis(getName(),getValues()); return new TextAxis(getName(),getValues()); }
/** * Previously we used to persist {@link Axis}, but now those are divided into subtypes. * So upon deserialization, resolve to the proper type. */ public Object readResolve() { if (getClass()!=Axis.class) return this; if (getName().equals("jdk")) return new JDKAxis(getValues()); if (getName().equals("label")) return new LabelAxis(getName(),getValues()); return new TextAxis(getName(),getValues()); }
@Override public List<String> getValues() { initPython(); if (pexec.isImplemented(7)) { return (List) pexec.execPython("get_values"); } else { return super.getValues(); } }