package com.github.dakusui.jcunit8.core;

import com.github.dakusui.combinatoradix.Cartesianator;

import java.util.List;
import java.util.stream.Stream;
import java.util.stream.StreamSupport;

import static java.util.Arrays.asList;

public class StreamableCartesianator<E> extends Cartesianator<E> {

  public StreamableCartesianator(List<? extends List<? extends E>> sets) {
    super(sets);
  }

  @SuppressWarnings("unchecked")
  public StreamableCartesianator(List<? extends E>... sets) {
    this(asList(sets));
  }

  public Cursor<List<E>> cursor(List<E> at) {
    return new Cursor.Impl<>(indexOf(at), this);
  }

  public Stream<List<E>> stream() {
    return StreamSupport.stream(this.spliterator(), false);
  }
}

@@ -191,48 +191,8 @@
 t;%0A%0A
-import static java.util.Arrays.asList;%0A%0A
 publ
@@ -356,232 +356,8 @@
  %7D%0A%0A
-  @SuppressWarnings(%22unchecked%22)%0A  public StreamableCartesianator(List%3C? extends E%3E... sets) %7B%0A    this(asList(sets));%0A  %7D%0A%0A  public Cursor%3CList%3CE%3E%3E cursor(List%3CE%3E at) %7B%0A    return new Cursor.Impl%3C%3E(indexOf(at), this);%0A  %7D%0A%0A
   pu

Address warnings in StreamableCartesianator.java