Skip to content
Snippets Groups Projects
Commit b51f2b02 authored by Christian Wulf's avatar Christian Wulf
Browse files

minor refactorings for InitialElementProducer

parent 74b2e0df
No related branches found
No related tags found
No related merge requests found
......@@ -48,14 +48,14 @@ public final class InitialElementProducer<T> extends AbstractProducerStage<T> {
this.terminate();
}
public void setIter(final Iterable<T> elements) {
this.elements = elements;
}
public void setIter(final T... elements) {
this.elements = Arrays.asList(elements);
}
public void setIter(final Iterable<T> elements) {
this.elements = elements;
}
public static void main(final String[] args) {
// int[] array = new int[] { 0, 0, 0 };
// new IterableProducer<Integer>(array);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment