@PublicAPI public class CompositeInputProducer extends java.lang.Object implements InputProducer
Modifier and Type | Field and Description |
---|---|
protected InputProducer[] |
inputProducers
The input producer array.
|
Constructor and Description |
---|
CompositeInputProducer()
Constructor.
|
CompositeInputProducer(InputProducer[] inputProducers)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getNext()
Returns the next input object array (one input from each input producer).
|
boolean |
hasNext()
Returns
true if all input producers have next input. |
void |
setInputProducers(InputProducer[] inputProducers)
Sets the input producers.
|
protected InputProducer[] inputProducers
public CompositeInputProducer()
setInputProducers(chemaxon.util.concurrent.InputProducer[])
public CompositeInputProducer(InputProducer[] inputProducers)
inputProducers
- the input producer arraypublic void setInputProducers(InputProducer[] inputProducers)
inputProducers
- the input producer arraypublic boolean hasNext() throws java.lang.InterruptedException, java.util.concurrent.ExecutionException
true
if all input producers have next input.hasNext
in interface chemaxon.util.concurrent.util.ConcurrentIterator
true
if all input producers have next inputjava.lang.InterruptedException
java.util.concurrent.ExecutionException
public java.lang.Object getNext() throws java.lang.InterruptedException, java.util.concurrent.ExecutionException
getNext
in interface chemaxon.util.concurrent.util.ConcurrentIterator
java.lang.InterruptedException
java.util.concurrent.ExecutionException