Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 51 - 60 of 793 for toOptional (0.08 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. apache-maven/src/assembly/maven/bin/mvnenc.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.7K bytes
    - Click Count (0)
Back to Top