- Sort Score
- Num 10 results
- Language All
Results 61 - 70 of 986 for toOptional (0.07 seconds)
-
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnenc/CommonsCliEncryptOptions.java
} @Override public Optional<Boolean> force() { if (commandLine.hasOption(CLIManager.FORCE)) { return Optional.of(Boolean.TRUE); } return Optional.empty(); } @Override public Optional<Boolean> yes() { if (commandLine.hasOption(CLIManager.YES)) { return Optional.of(Boolean.TRUE); } return Optional.empty();Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Thu Sep 25 17:39:57 GMT 2025 - 4K bytes - Click Count (0) -
cmd/batch-replicate_test.go
source: type: minio # valid values are "s3" or "minio" bucket: mytest prefix: object-prefix1 # 'PREFIX' is optional # If your source is the 'local' alias specified to 'mc batch start', then the 'endpoint' and 'credentials' fields are optional and can be omitted # Either the 'source' or 'remote' *must* be the "local" deployment # endpoint: "http://127.0.0.1:9000"Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Thu Aug 01 12:53:30 GMT 2024 - 7.9K bytes - Click Count (0) -
impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/TestUtils.java
when(options.all()).thenReturn(Optional.ofNullable(all)); when(options.infer()).thenReturn(Optional.ofNullable(infer)); when(options.model()).thenReturn(Optional.ofNullable(model)); when(options.plugins()).thenReturn(Optional.ofNullable(plugins)); when(options.modelVersion()).thenReturn(Optional.ofNullable(modelVersion)); return options; } /**
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Tue Nov 18 18:03:26 GMT 2025 - 8.9K 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) -
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) -
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-cli/src/main/java/org/apache/maven/cling/invoker/BaseInvokerRequest.java
} @Override public Optional<Path> rootDirectory() { return Optional.ofNullable(rootDirectory); } @Override public Optional<List<CoreExtensions>> coreExtensions() { return Optional.ofNullable(coreExtensions); } @Override public Optional<CIInfo> ciInfo() { return Optional.ofNullable(ciInfo); }Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Wed Jun 11 13:14:09 GMT 2025 - 4.2K bytes - Click Count (0) -
docs/ko/docs/advanced/advanced-python-types.md
`typing`에는 `None`이 될 수 있음을 선언하는 축약형으로 `Optional`도 있습니다. 아주 개인적인 관점에서의 팁입니다: - 🚨 `Optional[SomeType]` 사용은 피하세요 - 대신 ✨ **`Union[SomeType, None]`를 사용하세요** ✨. 둘은 동등하며 내부적으로도 같습니다. 하지만 단어 "optional"은 값이 선택 사항이라는 인상을 주는 반면, 실제 의미는 "값이 `None`이 될 수 있다"는 뜻입니다. 값이 선택 사항이 아니라 여전히 필수인 경우에도 그렇습니다. `Union[SomeType, None]`가 의미를 더 명확하게 드러낸다고 생각합니다. 이는 단지 단어와 명칭의 문제입니다. 하지만 이런 단어가 여러분과 팀원이 코드를 어떻게 생각하는지에 영향을 줄 수 있습니다. 예를 들어, 다음 함수를 보세요: ```python
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Feb 14 08:57:01 GMT 2026 - 2.4K bytes - Click Count (0) -
guava/src/com/google/common/collect/Streams.java
* * <p><b>Java 9 users:</b> use {@code optional.stream()} instead. */ @Beta @InlineMe(replacement = "optional.stream()") @InlineMeValidationDisabled("Java 9+ API only") public static <T> Stream<T> stream(java.util.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,Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Feb 23 19:19:10 GMT 2026 - 36.4K 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)