@Test public void testSamePushable() { Passthrough pt = new Passthrough(); Pushable p1 = pt.getPushableInput(0); Pushable p2 = pt.getPushableInput(0); assertTrue(p1 == p2); }
@Override public Pushable getPushableInput(int index) { if (m_inputPushables[index] == null) { if (m_inputArity == 1 && m_outputArity == 1) { m_inputPushables[index] = new UnaryPushable(); } else { m_inputPushables[index] = new InputPushable(index); } } return m_inputPushables[index]; }
UniformProcessor extends SynchronousProcessor { @Override public Pushable getPushableInput(int index) { if (m_inputPushables[index] == null) { if (m_inputArity == 1 && m_outputArity == 1) { m_inputPushables[index] = new UnaryPushable(); } else { m_inputPushables[index] = new InputPushable(index); } } return m_inputPushables[index]; } }
UniformProcessor extends SynchronousProcessor { @Override public Pushable getPushableInput(int index) { if (m_inputPushables[index] == null) { if (m_inputArity == 1 && m_outputArity == 1) { m_inputPushables[index] = new UnaryPushable(); } else { m_inputPushables[index] = new InputPushable(index); } } return m_inputPushables[index]; } UniformProcessor(int in_arity, int out_arity, /*@ null @*/ Context c);  UniformProcessor(int in_arity, int out_arity); }
UniformProcessor extends SynchronousProcessor { @Override public Pushable getPushableInput(int index) { if (m_inputPushables[index] == null) { if (m_inputArity == 1 && m_outputArity == 1) { m_inputPushables[index] = new UnaryPushable(); } else { m_inputPushables[index] = new InputPushable(index); } } return m_inputPushables[index]; } UniformProcessor(int in_arity, int out_arity, /*@ null @*/ Context c);  UniformProcessor(int in_arity, int out_arity); @Override Pullable getPullableOutput(int index); @Override Pushable getPushableInput(int index); }
UniformProcessor extends SynchronousProcessor { @Override public Pushable getPushableInput(int index) { if (m_inputPushables[index] == null) { if (m_inputArity == 1 && m_outputArity == 1) { m_inputPushables[index] = new UnaryPushable(); } else { m_inputPushables[index] = new InputPushable(index); } } return m_inputPushables[index]; } UniformProcessor(int in_arity, int out_arity, /*@ null @*/ Context c);  UniformProcessor(int in_arity, int out_arity); @Override Pullable getPullableOutput(int index); @Override Pushable getPushableInput(int index);  }