- Sort Score
- Num 10 results
- Language All
Results 51 - 60 of 1,113 for optional (0.07 seconds)
-
docs/ja/docs/advanced/advanced-python-types.md
- 代わりに ✨ **`Union[SomeType, None]` を使いましょう** ✨。 どちらも等価で内部的には同一ですが、「optional(任意)」という語が値が任意だと誤解させやすく、実際の意味は「`None` を取り得る」であり、任意ではなく依然として必須である場合でもそうです。そのため `Optional` より `Union` を勧めます。 `Union[SomeType, None]` の方が意味がより明確だと思います。 これは用語や名前付けの話に過ぎませんが、その言葉があなたやチームメイトのコードの捉え方に影響します。 例として次の関数を見てみましょう: ```python from typing import Optional def say_hi(name: Optional[str]): print(f"Hey {name}!") ```
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Feb 13 15:24:30 GMT 2026 - 2.4K bytes - Click Count (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/CertificateAdapters.kt
// v1 == 0. .optional(defaultValue = 0), Adapters.INTEGER_AS_BIG_INTEGER, algorithmIdentifier, name, validity, name, subjectPublicKeyInfo, Adapters.BIT_STRING.withTag(tag = 1L).optional(), Adapters.BIT_STRING.withTag(tag = 2L).optional(), extension.asSequenceOf().withExplicitBox(tag = 3).optional(defaultValue = listOf()), decompose = {Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 13.6K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/execution/ProfileActivation.java
* @param active Should the profile be activated? * @param optional Can the build continue if the profile does not exist? */ public void addProfileActivation(String id, boolean active, boolean optional) { final ActivationSettings settings = ActivationSettings.of(active, optional); this.activations.put(id, settings); }Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Tue Feb 11 16:38:19 GMT 2025 - 5.6K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/execution/ProjectActivation.java
* @param active Should the project be activated? * @param optional Can the build continue if the project does not exist? */ public void addProjectActivation(String selector, boolean active, boolean optional) { final ActivationSettings settings = ActivationSettings.of(active, optional); this.activations.add(new ProjectActivationSettings(selector, settings)); }Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Tue Feb 11 16:38:19 GMT 2025 - 7.2K bytes - Click Count (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/Lookup.java
/** * Performs a lookup for optional typed component. * * @param type The component type. * @return Optional carrying component or empty optional if no such component. * @param <T> The component type. * @throws LookupException if there is some provisioning related issue. */ @Nonnull <T> Optional<T> lookupOptional(Class<T> type); /**Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Wed Jan 10 12:55:54 GMT 2024 - 3.3K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/graph/ProjectSelector.java
* under the License. */ package org.apache.maven.graph; import java.io.File; import java.util.ArrayList; import java.util.HashSet; import java.util.LinkedHashSet; import java.util.List; import java.util.Optional; import java.util.Set; import java.util.stream.Collectors; import org.apache.maven.MavenExecutionException; import org.apache.maven.execution.MavenExecutionRequest; import org.apache.maven.execution.ProjectActivation;
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Tue Feb 11 16:38:19 GMT 2025 - 7.8K bytes - Click Count (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/CommonsCliUpgradeOptions.java
} return Optional.empty(); } @Override @Nonnull public Optional<String> modelVersion() { if (commandLine.hasOption(CLIManager.MODEL_VERSION)) { return Optional.of(commandLine.getOptionValue(CLIManager.MODEL_VERSION)); } return Optional.empty(); } @Override @Nonnull public Optional<String> directory() {Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Mon Sep 29 14:48:39 GMT 2025 - 7K bytes - Click Count (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/ProtoLookup.java
private ProtoLookup(Map<Class<?>, Object> components) { this.components = components; } @Override public <T> T lookup(Class<T> type) { Optional<T> optional = lookupOptional(type); if (optional.isPresent()) { return optional.get(); } else { throw new LookupException("No mapping for key: " + type.getName()); } } @Override
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Oct 25 12:31:46 GMT 2024 - 2.8K bytes - Click Count (0) -
okhttp/build.gradle.kts
"com.oracle.svm.core.annotate;resolution:=optional," + "com.oracle.svm.core.configure;resolution:=optional," + "dalvik.system;resolution:=optional," + "org.conscrypt;resolution:=optional," + "org.bouncycastle.*;resolution:=optional," + "org.openjsse.*;resolution:=optional," + "org.graalvm.nativeimage;resolution:=optional," + "org.graalvm.nativeimage.hosted;resolution:=optional," +Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Feb 04 22:16:39 GMT 2026 - 11.4K bytes - Click Count (0) -
apache-maven/src/assembly/maven/bin/mvnsh.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: Tue Dec 17 09:50:45 GMT 2024 - 1.7K bytes - Click Count (0)