- Sort Score
- Result 10 results
- Languages All
Results 121 - 130 of 168 for ifPresent (0.07 sec)
-
build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/JapicmpTask.java
private static RichReport.Configuration reportConfigurationOf(Provider<RichReport> report) { if (report.isPresent()) { return report.get().toConfiguration(); } return null; } private static File maybeFile(RegularFileProperty property) { if (property.isPresent()) { return property.getAsFile().get(); } return null; }
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Wed Apr 26 10:58:32 UTC 2023 - 13.3K bytes - Viewed (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/LayeredOptions.java
} protected <T> Optional<T> returnFirstPresentOrEmpty(Function<O, Optional<T>> getter) { for (O option : options) { Optional<T> o = getter.apply(option); if (o.isPresent()) { return o; } } return Optional.empty(); } protected Optional<List<String>> collectListIfPresentOrEmpty(Function<O, Optional<List<String>>> getter) {
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 5.5K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/graph/ProjectSelector.java
for (String selector : projectSelectors) { Optional<MavenProject> optSelectedProject = findOptionalProjectBySelector(projects, baseDirectory, selector); if (!optSelectedProject.isPresent()) { String message = "Could not find the selected project in the reactor: " + selector; throw new MavenExecutionException(message, request.getPom()); }
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/LookupInvoker.java
if (invokerRequest.options().help().isPresent()) { Consumer<String> writer = determineWriter(context); invokerRequest.options().displayHelp(context.invokerRequest.parserRequest(), writer); throw new ExitException(0); } if (invokerRequest.options().showVersionAndExit().isPresent()) { showVersion(context); throw new ExitException(0);
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 38K bytes - Viewed (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnenc/goals/Init.java
String fieldKey = field.getKey(); String fieldDescription = "Configure " + fieldKey + ": " + field.getDescription(); if (field.getOptions().isPresent()) { // list options ListPromptBuilder listPromptBuilder = promptBuilder.createListPrompt().name(fieldKey).message(fieldDescription);
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 12.1K bytes - Viewed (0) -
android/guava/src/com/google/common/base/Present.java
@GwtCompatible @ElementTypesAreNonnullByDefault final class Present<T> extends Optional<T> { private final T reference; Present(T reference) { this.reference = reference; } @Override public boolean isPresent() { return true; } @Override public T get() { return reference; } @Override public T or(T defaultValue) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 01 17:18:04 UTC 2021 - 2.4K bytes - Viewed (0) -
internal/crypto/sse-kms.go
// Otherwise, the metadata is corrupted. keyID, idPresent := metadata[MetaKeyID] b64KMSSealedKey, kmsKeyPresent := metadata[MetaDataEncryptionKey] if !idPresent && kmsKeyPresent { return keyID, kmsKey, sealedKey, ctx, Errorf("The object metadata is missing the internal KMS key-ID for SSE-S3") } if idPresent && !kmsKeyPresent {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue May 07 23:55:37 UTC 2024 - 8.5K bytes - Viewed (0) -
build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/tasks/AbstractCheckOrUpdateContributorsInReleaseNotes.kt
} @Internal protected fun getContributorsFromPullRequests(): Set<GitHubUser> { if (!milestone.isPresent) { error("Milestone not set: please rerun the task with `--milestone <milestone>`") } val prs: MutableList<GitHubPullRequest> = mutableListOf() for (page in 1..10) {
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Fri Jun 28 08:29:28 UTC 2024 - 5.6K bytes - Viewed (0) -
build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/extensions.kt
* limitations under the License. */ package gradlebuild.binarycompatibility import japicmp.util.Optional internal
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Wed Dec 09 08:14:05 UTC 2020 - 764 bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Streams.java
* otherwise returns an empty stream. */ public static <T> Stream<T> stream(com.google.common.base.Optional<T> optional) { return optional.isPresent() ? Stream.of(optional.get()) : Stream.empty(); } /** * If a value is present in {@code optional}, returns a stream containing only that element, * otherwise returns an empty stream. *
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 31 14:20:11 UTC 2024 - 37.4K bytes - Viewed (0)