Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 31 - 40 of 1,113 for optional (0.14 seconds)

  1. internal/config/api/help.go

    			Description: `set the acceptable quorum expected for list operations e.g. "optimal", "reduced", "disk", "strict", "auto"` + defaultHelpPostfix(apiListQuorum),
    			Optional:    true,
    			Type:        "string",
    		},
    		config.HelpKV{
    			Key:         apiReplicationPriority,
    			Description: `set replication priority` + defaultHelpPostfix(apiReplicationPriority),
    			Optional:    true,
    			Type:        "string",
    		},
    		config.HelpKV{
    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)
  2. 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)
  3. 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)
  4. 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.
         *
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Aug 29 12:46:51 GMT 2025
    - 3.6K bytes
    - Click Count (0)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to Top