use of entry.path.PathEntryPoint in project solution-finder by knewjade.
the class EntryPointMain method getPathEntryPoint.
private static Optional<EntryPoint> getPathEntryPoint(List<String> commands) throws FinderInitializeException, FinderParseException {
PathSettingParser settingParser = new PathSettingParser(commands);
Optional<PathSettings> settingsOptional = settingParser.parse();
if (settingsOptional.isPresent()) {
PathSettings settings = settingsOptional.get();
return Optional.of(new PathEntryPoint(settings));
} else {
return Optional.empty();
}
}
Aggregations