@Test public void testGetInputOperators() { final Operator<?> input1 = new OpImpl(0); final Operator<?> input2 = new OpImpl(1); final Operator<?> fixture = new OpImpl(0).withInputs(input1, input2); assertSame(input1, fixture.getInputOperators().get(0)); assertSame(input2, fixture.getInputOperators().get(1)); }
public List<Operator<?>> getInputOperators() { return new AbstractList<Operator<?>>() { @Override public Operator<?> get(final int index) { return Operator.this.inputs.get(index) == null ? null : Operator.this.inputs.get(index).getSource().getOperator(); } @Override public int indexOf(final Object o) { final ListIterator<JsonStream> e = Operator.this.inputs.listIterator(); while (e.hasNext()) if (o == e.next()) return e.previousIndex(); return -1; } @Override public int size() { return Operator.this.inputs.size(); } }; }
Operator extends ConfigurableSopremoType implements
		ISopremoType, JsonStream, Cloneable { public List<Operator<?>> getInputOperators() { return new AbstractList<Operator<?>>() { @Override public Operator<?> get(final int index) { return Operator.this.inputs.get(index) == null ? null : Operator.this.inputs.get(index).getSource().getOperator(); } @Override public int indexOf(final Object o) { final ListIterator<JsonStream> e = Operator.this.inputs.listIterator(); while (e.hasNext()) if (o == e.next()) return e.previousIndex(); return -1; } @Override public int size() { return Operator.this.inputs.size(); } }; } }
Operator extends ConfigurableSopremoType implements
		ISopremoType, JsonStream, Cloneable { public List<Operator<?>> getInputOperators() { return new AbstractList<Operator<?>>() { @Override public Operator<?> get(final int index) { return Operator.this.inputs.get(index) == null ? null : Operator.this.inputs.get(index).getSource().getOperator(); } @Override public int indexOf(final Object o) { final ListIterator<JsonStream> e = Operator.this.inputs.listIterator(); while (e.hasNext()) if (o == e.next()) return e.previousIndex(); return -1; } @Override public int size() { return Operator.this.inputs.size(); } }; } Operator();  Operator(final int minInputs, final int maxInputs, final int minOutputs, final int maxOutputs); }
Operator extends ConfigurableSopremoType implements
		ISopremoType, JsonStream, Cloneable { public List<Operator<?>> getInputOperators() { return new AbstractList<Operator<?>>() { @Override public Operator<?> get(final int index) { return Operator.this.inputs.get(index) == null ? null : Operator.this.inputs.get(index).getSource().getOperator(); } @Override public int indexOf(final Object o) { final ListIterator<JsonStream> e = Operator.this.inputs.listIterator(); while (e.hasNext()) if (o == e.next()) return e.previousIndex(); return -1; } @Override public int size() { return Operator.this.inputs.size(); } }; } Operator();  Operator(final int minInputs, final int maxInputs, final int minOutputs, final int maxOutputs); @Override void appendAsString(final Appendable appendable); abstract ElementarySopremoModule asElementaryOperators(); @SuppressWarnings("unchecked") @Override Operator<Self> clone(); @Override boolean equals(final Object obj); int getDegreeOfParallelism(); JsonStream getInput(final int index); List<Operator<?>> getInputOperators(); List<JsonStream> getInputs(); int getMaxInputs(); int getMaxOutputs(); int getMinInputs(); int getMinOutputs(); String getName(); int getNumInputs(); int getNumOutputs(); JsonStream getOutput(final int index); List<JsonStream> getOutputs(); @Override Output getSource(); @Override int hashCode(); @Property @Name(adjective = "parallel") void setDegreeOfParallelism(final int degree); void setInput(final int index, final JsonStream input); void setInputs(final JsonStream... inputs); void setInputs(final List<? extends JsonStream> inputs); void setName(final String name); void validate(); Self withInputs(final JsonStream... inputs); Self withInputs(final List<? extends JsonStream> inputs); Self withName(final String name); }
Operator extends ConfigurableSopremoType implements
		ISopremoType, JsonStream, Cloneable { public List<Operator<?>> getInputOperators() { return new AbstractList<Operator<?>>() { @Override public Operator<?> get(final int index) { return Operator.this.inputs.get(index) == null ? null : Operator.this.inputs.get(index).getSource().getOperator(); } @Override public int indexOf(final Object o) { final ListIterator<JsonStream> e = Operator.this.inputs.listIterator(); while (e.hasNext()) if (o == e.next()) return e.previousIndex(); return -1; } @Override public int size() { return Operator.this.inputs.size(); } }; } Operator();  Operator(final int minInputs, final int maxInputs, final int minOutputs, final int maxOutputs); @Override void appendAsString(final Appendable appendable); abstract ElementarySopremoModule asElementaryOperators(); @SuppressWarnings("unchecked") @Override Operator<Self> clone(); @Override boolean equals(final Object obj); int getDegreeOfParallelism(); JsonStream getInput(final int index); List<Operator<?>> getInputOperators(); List<JsonStream> getInputs(); int getMaxInputs(); int getMaxOutputs(); int getMinInputs(); int getMinOutputs(); String getName(); int getNumInputs(); int getNumOutputs(); JsonStream getOutput(final int index); List<JsonStream> getOutputs(); @Override Output getSource(); @Override int hashCode(); @Property @Name(adjective = "parallel") void setDegreeOfParallelism(final int degree); void setInput(final int index, final JsonStream input); void setInputs(final JsonStream... inputs); void setInputs(final List<? extends JsonStream> inputs); void setName(final String name); void validate(); Self withInputs(final JsonStream... inputs); Self withInputs(final List<? extends JsonStream> inputs); Self withName(final String name); final static List<? extends EvaluationExpression> ALL_KEYS; final static int STANDARD_DEGREE_OF_PARALLELISM; }