// the names of all modules in the boot layer
Set<String> modules = ModuleLayer.boot().modules().stream()
.map(Module::getName)
.collect(Collectors.toSet());
// throw exception if an expected module is not in the boot layer
splitter.splitAsStream(args[0])
.filter(Predicate.not(String::isEmpty))
.filter(mn -> !modules.contains(mn))
.findAny()
.ifPresent(mn -> { thrownew RuntimeException(mn + " not in boot layer!!!");
});
// throw exception if an unexpected module is in the boot layer
splitter.splitAsStream(args[1])
.filter(Predicate.not(String::isEmpty))
.filter(mn -> modules.contains(mn))
.findAny()
.ifPresent(mn -> { thrownew RuntimeException(mn + " in boot layer!!!!");
});
}
}
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.8 Sekunden
(vorverarbeitet am 2026-06-10)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.