java.util.ListIterator.forEachRemaining()方法的使用及代码示例

x33g5p2x  于2022-01-23 转载在 其他  
字(3.2k)|赞(0)|评价(0)|浏览(183)

本文整理了Java中java.util.ListIterator.forEachRemaining()方法的一些代码示例,展示了ListIterator.forEachRemaining()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ListIterator.forEachRemaining()方法的具体详情如下:
包路径:java.util.ListIterator
类名称:ListIterator
方法名:forEachRemaining

ListIterator.forEachRemaining介绍

暂无

代码示例

代码示例来源:origin: resteasy/Resteasy

@Override
 public void forEachRemaining(Consumer<? super E> action) {
   iterator.forEachRemaining(action);
 }
};

代码示例来源:origin: org.jboss.resteasy/resteasy-core

@Override
 public void forEachRemaining(Consumer<? super E> action) {
   iterator.forEachRemaining(action);
 }
};

代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core

@Override
  public void forEachRemaining(Consumer<? super E> action) {
    this.delegateIterator.forEachRemaining(action);
  }
};

代码示例来源:origin: org.jboss.resteasy/resteasy-jaxrs-20

@Override
  public void forEachRemaining(Consumer<? super E> action) {
    iterator.forEachRemaining(action);
  }
};

代码示例来源:origin: com.haulmont.thirdparty/eclipselink

@Override
  public void forEachRemaining(Consumer<? super E> action) {
    this.delegateIterator.forEachRemaining(action);
  }
};

代码示例来源:origin: jenetics/jpx

@Override
public void forEachRemaining(final Consumer<? super E> action) {
  _it.forEachRemaining(action);
}

代码示例来源:origin: palantir/language-servers

private synchronized void appendRemainingRanges(List<TextDocumentContentChangeEvent> sortedChanges, int changeIdx,
    BufferedWriter output) throws IOException {
  sortedChanges.listIterator(changeIdx).forEachRemaining(change -> {
    try {
      output.write(change.getText());
    } catch (IOException e) {
      Throwables.propagate(e);
    }
  });
  if (changeIdx < sortedChanges.size()) {
    output.newLine();
  }
}

代码示例来源:origin: java-deobfuscator/deobfuscator

public static Map<LabelNode, LabelNode> generateCloneMap(InsnList list) {
    Map<LabelNode, LabelNode> result = new HashMap<>();
    list.iterator().forEachRemaining(insn -> {
      if (insn instanceof LabelNode) {
        result.put((LabelNode) insn, new LabelNode());
      }
    });
    return result;
  }
}

代码示例来源:origin: opendaylight/yangtools

Optional<SourceException> failModifiers(final ModelProcessingPhase identifier) {
  final List<SourceException> exceptions = new ArrayList<>();
  for (final ModifierImpl mod : modifiers.get(identifier)) {
    try {
      mod.failModifier();
    } catch (final SourceException e) {
      exceptions.add(e);
    }
  }
  if (exceptions.isEmpty()) {
    return Optional.empty();
  }
  final String message = String.format("Yang model processing phase %s failed", identifier);
  final InferenceException e = new InferenceException(message, root.getStatementSourceReference(),
    exceptions.get(0));
  exceptions.listIterator(1).forEachRemaining(e::addSuppressed);
  return Optional.of(e);
}

代码示例来源:origin: jpmorganchase/tessera

pathTokens.forEachRemaining(builder::add);
  String nestedPath = builder.stream().collect(Collectors.joining("."));
pathTokens.forEachRemaining(builder::add);
String nestedPath = builder.stream().collect(Collectors.joining("."));
setValue(nestedObject, nestedPath, value);

代码示例来源:origin: com.jpmorgan.quorum/config-cli

pathTokens.forEachRemaining(builder::add);
  String nestedPath = builder.stream().collect(Collectors.joining("."));
pathTokens.forEachRemaining(builder::add);
String nestedPath = builder.stream().collect(Collectors.joining("."));
setValue(nestedObject, nestedPath, value);

相关文章