- Sort Score
- Num 10 results
- Language All
Results 31 - 40 of 1,034 for Optional (0.06 seconds)
-
internal/config/api/help.go
Key: apiRequestsMax, Description: `set the maximum number of concurrent requests (default: auto)`, Optional: true, Type: "number", }, config.HelpKV{ Key: apiClusterDeadline, Description: `set the deadline for cluster readiness check` + defaultHelpPostfix(apiClusterDeadline), Optional: true, Type: "duration", }, config.HelpKV{ Key: apiCorsAllowOrigin,
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Aug 16 08:43:49 GMT 2024 - 4.4K bytes - Click Count (0) -
guava/src/com/google/common/base/Absent.java
throw new IllegalStateException("Optional.get() cannot be called on an absent value"); } @Override public T or(T defaultValue) { return checkNotNull(defaultValue, "use Optional.orNull() instead of Optional.or(null)"); } @SuppressWarnings("unchecked") // safe covariant cast @Override public Optional<T> or(Optional<? extends T> secondChoice) { return (Optional<T>) checkNotNull(secondChoice); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Apr 15 22:14:00 GMT 2025 - 2.6K bytes - Click Count (0) -
api/maven-api-cli/src/main/java/org/apache/maven/api/cli/mvnup/UpgradeOptions.java
* * @return an {@link Optional} containing the list of goals, or empty if not specified */ @Nonnull Optional<List<String>> goals(); /** * Returns the target POM model version for upgrades. * Supported values include "4.0.0" and "4.1.0". * * @return an {@link Optional} containing the model version, or empty if not specified */ @NonnullCreated: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Aug 29 12:46:51 GMT 2025 - 3.6K bytes - Click Count (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/VersionRangeResolverResult.java
* * @return An Optional containing the lowest matching version, or empty Optional if no versions * matched the requested range */ @Nonnull default Optional<Version> getLowestVersion() { return getVersions().isEmpty() ? Optional.empty() : Optional.of(getVersions().get(0)); } /**Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Wed Jan 29 08:17:07 GMT 2025 - 3.4K bytes - Click Count (0) -
apache-maven/src/assembly/maven/bin/mvnDebug.cmd
@REM @REM JAVA_HOME (Optional) Points to a Java installation. @REM MAVEN_BATCH_ECHO (Optional) Set to 'on' to enable the echoing of the batch commands. @REM MAVEN_BATCH_PAUSE (Optional) set to 'on' to wait for a key stroke before ending. @REM MAVEN_OPTS (Optional) Java runtime options used when Maven is executed. @REM MAVEN_SKIP_RC (Optional) Flag to disable loading of mavenrc files.
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Oct 18 11:01:21 GMT 2024 - 1.9K bytes - Click Count (0) -
internal/config/compress/help.go
Optional: true, Type: "csv", }, config.HelpKV{ Key: AllowEncrypted, Description: `enable 'encryption' along with compression`, Optional: true, Type: "on|off", }, config.HelpKV{ Key: config.Comment, Description: config.DefaultComment, Optional: true, Type: "sentence", }, }
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sun Jul 17 15:43:14 GMT 2022 - 1.8K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/execution/ActivationSettings.java
return of(active, optional, true); } static ActivationSettings of(final boolean active, final boolean optional, final boolean recursive) { return new ActivationSettings(active, optional, recursive); } static ActivationSettings activated() { return new ActivationSettings(true, false, true); } static ActivationSettings activatedOpt() {
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Tue Feb 11 16:38:19 GMT 2025 - 2K bytes - Click Count (0) -
guava/src/com/google/common/base/Present.java
@Override public T get() { return reference; } @Override public T or(T defaultValue) { checkNotNull(defaultValue, "use Optional.orNull() instead of Optional.or(null)"); return reference; } @Override public Optional<T> or(Optional<? extends T> secondChoice) { checkNotNull(secondChoice); return this; } @Override public T or(Supplier<? extends T> supplier) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Apr 15 22:14:00 GMT 2025 - 2.5K bytes - Click Count (0) -
docs/zh/docs/advanced/advanced-python-types.md
两者是等价的,底层其实也是一样的。但我更推荐使用 `Union` 而不是 `Optional`,因为单词“optional”(可选)看起来会暗示该值是可选的,而它真正的含义是“它可以是 `None`”,即使它并不是可选的,仍然是必填的。 我认为 `Union[SomeType, None]` 更能明确表达其含义。 这只是关于词语和命名的问题,但这些词语会影响你和你的队友如何看待代码。 举个例子,看这段函数: ```python from typing import Optional def say_hi(name: Optional[str]): print(f"Hey {name}!") ``` 参数 `name` 被定义为 `Optional[str]`,但它并不是“可选”的,你不能不传这个参数就调用函数: ```Python
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Feb 13 13:37:57 GMT 2026 - 2K bytes - Click Count (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/CommonsCliOptions.java
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Wed Oct 08 07:36:42 GMT 2025 - 21.3K bytes - Click Count (0)