Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 111 - 120 of 1,171 for optionals (0.05 seconds)

  1. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/TestUtils.java

            when(options.model()).thenReturn(Optional.empty());
            when(options.plugins()).thenReturn(Optional.empty());
            when(options.modelVersion()).thenReturn(Optional.empty());
            return options;
        }
    
        /**
         * Creates upgrade options with specific values.
         *
         * @param all the --all option value (null for absent)
         * @param infer the --infer option value (null for absent)
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Nov 18 18:03:26 GMT 2025
    - 8.9K bytes
    - Click Count (0)
  2. docs/pt/docs/tutorial/body-multiple-params.md

    E você também pode declarar parâmetros de corpo como opcionais, definindo o valor padrão com `None`:
    
    {* ../../docs_src/body_multiple_params/tutorial001_an_py310.py hl[18:20] *}
    
    /// note | Nota
    
    Repare que, neste caso, o `item` que seria capturado a partir do corpo é opcional. Visto que ele possui `None` como valor padrão.
    
    ///
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Nov 12 16:23:57 GMT 2025
    - 5.4K bytes
    - Click Count (0)
  3. 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 Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 2.8K bytes
    - Click Count (0)
  4. android/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 Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Apr 15 22:14:00 GMT 2025
    - 2.5K bytes
    - Click Count (0)
  5. 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 Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Feb 11 16:38:19 GMT 2025
    - 7.8K bytes
    - Click Count (0)
  6. 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 Dec 26 12:43:10 GMT 2025
    - Last Modified: Sat Aug 09 01:14:59 GMT 2025
    - 36.4K bytes
    - Click Count (0)
  7. 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 Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 13.6K bytes
    - Click Count (0)
  8. impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultLookup.java

                throw new LookupException(e);
            }
        }
    
        @Override
        public <T> Optional<T> lookupOptional(Class<T> type) {
            try {
                return Optional.of(container.lookup(type));
            } catch (ComponentLookupException e) {
                if (e.getCause() instanceof NoSuchElementException) {
                    return Optional.empty();
                }
                throw new LookupException(e);
            }
        }
    
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 3.1K bytes
    - Click Count (0)
  9. internal/hash/reader.go

    	trailer http.Header
    
    	sha256 hash.Hash
    }
    
    // Options are optional arguments to NewReaderWithOpts, Options
    // simply converts positional arguments to NewReader() into a
    // more flexible way to provide optional inputs. This is currently
    // used by the FanOut API call mostly to disable expensive md5sum
    // calculation repeatedly under hash.Reader.
    type Options struct {
    	MD5Hex     string
    	SHA256Hex  string
    	Size       int64
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Wed Jun 25 15:08:54 GMT 2025
    - 11.8K bytes
    - Click Count (0)
  10. fastapi/security/oauth2.py

        scope: Optional string. Several scopes (each one a string) separated by spaces. E.g.
            "items:read items:write users:read profile openid"
        client_id: optional string. OAuth2 recommends sending the client_id and client_secret (if any)
            using HTTP Basic auth, as: client_id:client_secret
        client_secret: optional string. OAuth2 recommends sending the client_id and client_secret (if any)
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 22K bytes
    - Click Count (0)
Back to Top