- Sort Score
- Num 10 results
- Language All
Results 121 - 130 of 1,034 for Optional (0.06 seconds)
-
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/cisupport/CIDetector.java
package org.apache.maven.cling.invoker.cisupport; import java.util.Optional; import org.apache.maven.api.cli.cisupport.CIInfo; /** * Service interface to detect CI system process runs on, if any. * * @since 4.0.0 */ public interface CIDetector { /** * Returns non-empty optional with CI information, if CI is detected, empty otherwise. */ Optional<CIInfo> detectCI();Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Sun Apr 13 18:50:07 GMT 2025 - 1.2K bytes - Click Count (0) -
internal/config/callhome/help.go
Type: "on|off", Description: "set to enable callhome" + defaultHelpPostfix(Enable), Optional: true, }, config.HelpKV{ Key: Frequency, Type: "duration", Description: "time duration between callhome cycles e.g. 24h" + defaultHelpPostfix(Frequency), Optional: true, }, }
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Mon Jun 06 23:14:52 GMT 2022 - 1.4K bytes - Click Count (0) -
android/guava/src/com/google/common/io/ByteSource.java
} @Override public Optional<Long> sizeIfKnown() { Optional<Long> optionalUnslicedSize = ByteSource.this.sizeIfKnown(); if (optionalUnslicedSize.isPresent()) { long unslicedSize = optionalUnslicedSize.get(); long off = min(offset, unslicedSize); return Optional.of(min(length, unslicedSize - off)); } return Optional.absent(); } @OverrideCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Sep 08 18:35:13 GMT 2025 - 25.7K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultProjectManager.java
this.session = session; this.artifactManager = artifactManager; } @Nonnull @Override public Optional<Path> getPath(@Nonnull Project project) { requireNonNull(project, "project" + " cannot be null"); Optional<ProducedArtifact> mainArtifact = project.getMainArtifact(); return mainArtifact.flatMap(artifactManager::getPath); } @Nonnull @OverrideCreated: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Wed Dec 17 16:17:01 GMT 2025 - 10.9K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/execution/BuildResumptionAnalyzer.java
* @param result Outcome of the current Maven build. * @return A {@link BuildResumptionData} instance or {@link Optional#empty()} if resuming the build is not possible. */ Optional<BuildResumptionData> determineBuildResumptionData(MavenExecutionResult result);Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Sat Apr 05 11:52:05 GMT 2025 - 1.4K bytes - Click Count (0) -
build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/rules/AbstractSuperClassChangesRule.groovy
Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Wed Dec 24 14:15:15 GMT 2025 - 2.2K bytes - Click Count (0) -
android/guava/src/com/google/common/base/Enums.java
} catch (NoSuchFieldException impossible) { throw new AssertionError(impossible); } } /** * Returns an optional enum constant for the given type, using {@link Enum#valueOf}. If the * constant does not exist, {@link Optional#absent} is returned. A common use case is for parsing * user input or falling back to a default enum constant. For example, {@code
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Jul 01 13:41:58 GMT 2025 - 4.8K bytes - Click Count (0) -
build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/test/rest/transform/ReplaceByKey.java
return testName == null || testContext.getTestName().equals(testName); } @Input @Optional public JsonNode getReplacementNode() { return replacementNode; } @Input @Optional public String getTestName() { return testName; }
Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Tue Jun 01 09:19:30 GMT 2021 - 2.2K bytes - Click Count (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/props/MavenPropertiesLoader.java
} private static void trimValues(MavenProperties configProps) { configProps.replaceAll((k, v) -> v.trim()); } private static String nextLocation(StringTokenizer st) { boolean optional = false; String retVal = null; if (st.countTokens() > 0) { String tokenList = "?\","; StringBuilder tokBuf = new StringBuilder(10); String tok;Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Jan 24 17:29:44 GMT 2025 - 6.4K bytes - Click Count (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/ToolchainFactory.java
/** * Creates a default toolchain instance using system defaults. * * @return Optional containing the default toolchain if available * @throws ToolchainFactoryException if default toolchain creation fails */ @Nonnull Optional<Toolchain> createDefaultToolchain() throws ToolchainFactoryException;Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Tue Feb 11 12:33:57 GMT 2025 - 2.1K bytes - Click Count (0)