本文整理了Java中java.util.stream.IntStream.builder()
方法的一些代码示例,展示了IntStream.builder()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。IntStream.builder()
方法的具体详情如下:
包路径:java.util.stream.IntStream
类名称:IntStream
方法名:builder
暂无
代码示例来源:origin: one.util/streamex
@Override
public void accept(int t) {
if ((vals += vals < 3 ? 1 : 0) == 2) {
cons = IntStream.builder();
}
cons.accept(t);
}
}
代码示例来源:origin: ch.netzwerg/paleo-core
private Builder(IntColumnId id) {
this.id = id;
this.valueBuilder = IntStream.builder();
this.metaDataBuilder = new MetaDataBuilder();
}
代码示例来源:origin: netzwerg/paleo
private Builder(IntColumnId id) {
this.id = id;
this.valueBuilder = IntStream.builder();
this.metaDataBuilder = new MetaDataBuilder();
}
代码示例来源:origin: dunwu/javacore
private static void test2() {
IntStream
.builder()
.add(1)
.add(3)
.add(5)
.add(7)
.add(11)
.build()
.average()
.ifPresent(System.out::println);
}
代码示例来源:origin: termd/termd
private void refresh(LineBuffer update, int width) {
LineBuffer copy3 = new LineBuffer();
IntStream.Builder consumer = IntStream.builder();
copy3.insert(Helper.toCodePoints(currentPrompt));
copy3.insert(buffer().toArray());
copy3.setCursor(currentPrompt.length() + buffer().getCursor());
LineBuffer copy2 = new LineBuffer();
copy2.insert(Helper.toCodePoints(currentPrompt));
copy2.insert(update.toArray());
copy2.setCursor(currentPrompt.length() + update.getCursor());
copy3.update(copy2, data -> {
for (int cp : data) {
consumer.accept(cp);
}
}, width);
conn.stdoutHandler().accept(consumer.build().toArray());
buffer.clear();
buffer.insert(update.toArray());
buffer.setCursor(update.getCursor());
}
代码示例来源:origin: io.termd/termd-core
private void refresh(LineBuffer update, int width) {
LineBuffer copy3 = new LineBuffer();
IntStream.Builder consumer = IntStream.builder();
copy3.insert(Helper.toCodePoints(currentPrompt));
copy3.insert(buffer().toArray());
copy3.setCursor(currentPrompt.length() + buffer().getCursor());
LineBuffer copy2 = new LineBuffer();
copy2.insert(Helper.toCodePoints(currentPrompt));
copy2.insert(update.toArray());
copy2.setCursor(currentPrompt.length() + update.getCursor());
copy3.update(copy2, data -> {
for (int cp : data) {
consumer.accept(cp);
}
}, width);
conn.stdoutHandler().accept(consumer.build().toArray());
buffer.clear();
buffer.insert(update.toArray());
buffer.setCursor(update.getCursor());
}
内容来源于网络,如有侵权,请联系作者删除!