package beakerx.test;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.Random;
import java.util.function.Supplier;
import java.util.stream.Stream;
TableDisplay.setLoadingMode(TableDisplayLoadingMode.ENDLESS);
Stream<Map<String, Object>> s1 = Stream.generate(new Supplier<Map<String, Object>>() {
Random random = new Random();
int index = 0;
@Override
public Map<String, Object> get() {
return new LinkedHashMap<String, Object>() {
{
put("str1", index++);
put("str2", random.nextFloat());
put("str3", random.nextInt());
}
};
}
});
return new TableDisplay(s1);