APISonar


io.quarkus.generators.SourceType.JAVA

> io > quarkus > generators > SourceType > JAVA
io APIs quarkus APIs generators APIs SourceType APIs JAVA APIs

Example 1
public static SourceType determineSourceType(Set<String> extensions) {
        Optional<SourceType> sourceType = extensions.stream()
                .map(SourceType::parse)
                .filter(Optional::isPresent)
                .map(e -> e.orElse(SourceType.JAVA))
                .findAny();
        return sourceType.orElse(SourceType.JAVA);
    }