- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for collectListIfPresentOrEmpty (0.17 sec)
-
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvn/LayeredMavenOptions.java
return returnFirstPresentOrEmpty(MavenOptions::updateSnapshots); } @Override public Optional<List<String>> activatedProfiles() { return collectListIfPresentOrEmpty(MavenOptions::activatedProfiles); } @Override public Optional<Boolean> suppressSnapshotUpdates() { return returnFirstPresentOrEmpty(MavenOptions::suppressSnapshotUpdates); }
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 5.3K bytes - Viewed (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/LayeredOptions.java
if (o.isPresent()) { return o; } } return Optional.empty(); } protected Optional<List<String>> collectListIfPresentOrEmpty(Function<O, Optional<List<String>>> getter) { int had = 0; ArrayList<String> items = new ArrayList<>(); for (O option : options) { Optional<List<String>> o = getter.apply(option);
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 5.5K bytes - Viewed (0)