Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 1,171 for optionals (0.07 seconds)

  1. guava-tests/test/com/google/common/base/OptionalTest.java

        List<Optional<Object>> optionals = ImmutableList.of(Optional.absent(), Optional.absent());
        assertThat(Optional.presentInstances(optionals)).isEmpty();
      }
    
      public void testPresentInstances_somePresent() {
        List<Optional<String>> optionals =
            ImmutableList.of(Optional.of("a"), Optional.<String>absent(), Optional.of("c"));
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Oct 28 16:03:47 GMT 2025
    - 10.5K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/base/Optional.java

       *
       * @since 11.0 (generics widened in 13.0)
       */
      public static <T> Iterable<T> presentInstances(
          Iterable<? extends Optional<? extends T>> optionals) {
        checkNotNull(optionals);
        return () ->
            new AbstractIterator<T>() {
              private final Iterator<? extends Optional<? extends T>> iterator =
                  checkNotNull(optionals.iterator());
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Wed Jun 04 13:03:16 GMT 2025
    - 15.4K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/cache/CacheBuilderFactory.java

      }
    
      private static final Function<Object, Optional<?>> NULLABLE_TO_OPTIONAL =
          new Function<Object, Optional<?>>() {
            @Override
            public Optional<?> apply(@Nullable Object obj) {
              return Optional.fromNullable(obj);
            }
          };
    
      private static final Function<Optional<?>, @Nullable Object> OPTIONAL_TO_NULLABLE =
          new Function<Optional<?>, @Nullable Object>() {
            @Override
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Jul 08 18:32:10 GMT 2025
    - 8.4K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/base/MoreObjects.java

       * Predicates.notNull())}, static importing as necessary.
       *
       * <p><b>Note:</b> if {@code first} is represented as an {@link Optional}, this can be
       * accomplished with {@link Optional#or(Object) first.or(second)}. That approach also allows for
       * lazy evaluation of the fallback instance, using {@link Optional#or(Supplier)
       * first.or(supplier)}.
       *
       * <p><b>Java 9 users:</b> use {@code java.util.Objects.requireNonNullElse(first, second)}
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Mar 17 20:26:29 GMT 2025
    - 16.1K bytes
    - Click Count (0)
  5. android/guava-tests/test/com/google/common/base/ToStringHelperTest.java

                .add("field11", Arrays.asList("Hello"))
                .add("field12", new ArrayList<>())
                .add("field13", new HashMap<>())
                // Optionals
                .add("field26", Optional.of("World"))
                .add("field27", Optional.absent())
                // Arrays
                .add("field31", new Object[] {"!!!"})
                .add("field32", new boolean[0])
                .add("field33", new byte[0])
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue May 13 18:46:00 GMT 2025
    - 21.4K bytes
    - Click Count (0)
  6. guava/src/com/google/common/base/MoreObjects.java

       * Predicates.notNull())}, static importing as necessary.
       *
       * <p><b>Note:</b> if {@code first} is represented as an {@link Optional}, this can be
       * accomplished with {@link Optional#or(Object) first.or(second)}. That approach also allows for
       * lazy evaluation of the fallback instance, using {@link Optional#or(Supplier)
       * first.or(supplier)}.
       *
       * <p><b>Java 9 users:</b> use {@code java.util.Objects.requireNonNullElse(first, second)}
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Mar 17 20:26:29 GMT 2025
    - 16.6K bytes
    - Click Count (0)
  7. docs/de/docs/tutorial/query-params.md

    * `limit=10`: weil das der Defaultwert ist
    
    ## Optionale Parameter { #optional-parameters }
    
    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 | Testen
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 5K bytes
    - Click Count (0)
  8. docs/de/docs/index.md

    ### Zusätzliche optionale Abhängigkeiten { #additional-optional-dependencies }
    
    Es gibt einige zusätzliche Abhängigkeiten, die Sie installieren möchten.
    
    Zusätzliche optionale Pydantic-Abhängigkeiten:
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri Dec 26 09:39:53 GMT 2025
    - 25.8K bytes
    - Click Count (1)
  9. docs/pt/docs/tutorial/query-params.md

    * `limit=10`: Por que esse era o valor padrão
    
    ## Parâmetros opcionais { #optional-parameters }
    
    Da mesma forma, você pode declarar parâmetros de consulta opcionais, definindo o valor padrão para `None`:
    
    {* ../../docs_src/query_params/tutorial002_py310.py hl[7] *}
    
    Nesse caso, o parâmetro da função `q` será opcional, e `None` será o padrão.
    
    /// check | Verifique
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 5K bytes
    - Click Count (0)
  10. docs/es/docs/tutorial/query-params.md

    * `limit=10`: porque ese era el valor por defecto
    
    ## Parámetros opcionales { #optional-parameters }
    
    De la misma manera, puedes declarar parámetros de query opcionales, estableciendo su valor por defecto en `None`:
    
    {* ../../docs_src/query_params/tutorial002_py310.py hl[7] *}
    
    En este caso, el parámetro de función `q` será opcional y será `None` por defecto.
    
    /// check | Revisa
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 4.8K bytes
    - Click Count (0)
Back to Top