- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 712 for optional (0.04 sec)
-
android/guava-tests/test/com/google/common/collect/ComparatorsTest.java
public void testEmptiesFirst() { Optional<String> empty = Optional.empty(); Optional<String> abc = Optional.of("abc"); Optional<String> z = Optional.of("z"); Comparator<Optional<String>> comparator = emptiesFirst(comparing(String::length)); testComparator(comparator, empty, z, abc); // Just demonstrate that no explicit type parameter is required Comparator<Optional<String>> unused = emptiesFirst(naturalOrder());
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Apr 12 15:07:59 UTC 2025 - 6.4K bytes - Viewed (0) -
docs/de/docs/tutorial/query-params.md
* `skip=20`: da Sie das in der URL gesetzt haben * `limit=10`: weil das der Defaultwert ist ## Optionale Parameter Auf die gleiche Weise können Sie optionale Query-Parameter deklarieren, indem Sie deren Defaultwert auf `None` setzen: {* ../../docs_src/query_params/tutorial002_py310.py hl[7] *} In diesem Fall wird der Funktionsparameter `q` optional, und standardmäßig `None` sein. /// check
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 10:29:01 UTC 2025 - 4.8K bytes - Viewed (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)); } /**
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Wed Jan 29 08:17:07 UTC 2025 - 3.4K bytes - Viewed (0) -
api/maven-api-cli/src/main/java/org/apache/maven/api/cli/mvnup/UpgradeOptions.java
* @return an {@link Optional} containing the boolean value {@code true} if specified, or empty */ @Nonnull Optional<Boolean> plugins(); /** * Should apply all upgrade options (equivalent to --model-version 4.1.0 --infer --model --plugins). * This is a convenience option that combines model upgrade, inference, compatibility fixes, and plugin upgrades. *
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Fri Aug 29 12:46:51 UTC 2025 - 3.6K bytes - Viewed (0) -
compat/maven-artifact/src/main/java/org/apache/maven/artifact/DefaultArtifact.java
public boolean isSelectedVersionKnown() throws OverConstrainedVersionException { return versionRange.isSelectedVersionKnown(this); } @Override public void setOptional(boolean optional) { this.optional = optional; }
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Wed Jul 23 17:27:08 UTC 2025 - 14.6K bytes - Viewed (0) -
docs/pt/docs/python-types.md
```Python hl_lines="1 4" {!../../docs_src/python_types/tutorial009.py!} ``` O uso de `Optional[str]` em vez de apenas `str` permitirá que o editor o ajude a detectar erros, onde você pode estar assumindo que um valor é sempre um `str`, quando na verdade também pode ser `None`.
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sat Nov 09 10:32:53 UTC 2024 - 17.8K bytes - Viewed (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/SettingsBuilderRequest.java
@Nonnull @Override public Optional<Source> getInstallationSettingsSource() { return Optional.ofNullable(installationSettingsSource); } @Nonnull @Override public Optional<Source> getProjectSettingsSource() { return Optional.ofNullable(projectSettingsSource); } @Nonnull
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Fri Feb 07 00:45:02 UTC 2025 - 9.4K bytes - Viewed (0) -
docs/es/docs/python-types.md
``` //// #### Uso de `Union` u `Optional` Si estás usando una versión de Python inferior a 3.10, aquí tienes un consejo desde mi punto de vista muy **subjetivo**: * 🚨 Evita usar `Optional[SomeType]` * En su lugar ✨ **usa `Union[SomeType, None]`** ✨.
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Mon Dec 30 17:46:44 UTC 2024 - 17.6K bytes - Viewed (1) -
api/maven-api-cli/src/main/java/org/apache/maven/api/cli/InvokerRequest.java
@Nonnull Optional<CIInfo> ciInfo(); /** * Returns the options associated with this invocation request. * * @return the options optional. It will be absent if {@link #parsingFailed()} return {@code true}. */ @Nonnull Optional<Options> options(); /** * This method returns "verbose" option value derived from multiple places: CLI options, but also CI detection,
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Wed Jun 11 13:14:09 UTC 2025 - 6.7K bytes - Viewed (0) -
docs/nl/docs/python-types.md
``` //// #### Gebruik van `Union` of `Optional` Als je een Python versie lager dan 3.10 gebruikt, is dit een tip vanuit mijn **subjectieve** standpunt: * 🚨 Vermijd het gebruik van `Optional[EenType]`. * Gebruik in plaats daarvan **`Union[EenType, None]`** ✨.
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 18.1K bytes - Viewed (0)