Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1171 - 1180 of 3,874 for list (0.03 seconds)

  1. docs/zh-hant/docs/python-types.md

    有些型別可以在方括號中接收「型別參數」,以定義其內部元素的型別,例如「字串的 list」可以宣告為 `list[str]`。
    
    這些能接收型別參數的型別稱為「泛型(Generic types)」或「Generics」。
    
    你可以將相同的內建型別用作泛型(使用方括號並在裡面放型別):
    
    * `list`
    * `tuple`
    * `set`
    * `dict`
    
    #### List { #list }
    
    例如,讓我們定義一個變數是 `str` 的 `list`。
    
    宣告變數,使用相同的冒號(`:`)語法。
    
    型別填 `list`。
    
    由於 list 是一種包含內部型別的型別,你要把內部型別放在方括號中:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 10.7K bytes
    - Click Count (0)
  2. tests/test_response_model_as_return_annotation.py

    @app.get("/response_model_list_of_model-no_annotation", response_model=list[User])
    def response_model_list_of_model_no_annotation():
        return [
            DBUser(name="John", surname="Doe", password_hash="secret"),
            DBUser(name="Jane", surname="Does", password_hash="secret2"),
        ]
    
    
    @app.get("/no_response_model-annotation_list_of_model")
    def no_response_model_annotation_list_of_model() -> list[User]:
        return [
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 50.3K bytes
    - Click Count (0)
  3. guava/src/com/google/common/collect/ConcurrentHashMultiset.java

          return snapshot().toArray(array);
        }
    
        private List<Multiset.Entry<E>> snapshot() {
          List<Multiset.Entry<E>> list = newArrayListWithExpectedSize(size());
          // Not Iterables.addAll(list, this), because that'll forward right back here.
          Iterators.addAll(list, iterator());
          return list;
        }
      }
    
      /**
       * @serialData the ConcurrentMap of elements and their counts.
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Dec 26 20:08:09 GMT 2025
    - 22.3K bytes
    - Click Count (0)
  4. guava-testlib/src/com/google/common/collect/testing/testers/SortedMapNavigationTester.java

    import com.google.common.collect.testing.Helpers;
    import com.google.common.collect.testing.features.CollectionSize;
    import java.util.Comparator;
    import java.util.Iterator;
    import java.util.List;
    import java.util.Map.Entry;
    import java.util.NoSuchElementException;
    import java.util.SortedMap;
    import org.junit.Ignore;
    
    /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 6.1K bytes
    - Click Count (0)
  5. impl/maven-core/src/main/java/org/apache/maven/artifact/resolver/filter/ExcludesArtifactFilter.java

    package org.apache.maven.artifact.resolver.filter;
    
    import java.util.List;
    
    import org.apache.maven.artifact.Artifact;
    
    /**
     * Filter to exclude from a list of artifact patterns.
     *
     * TODO I think this is equiv. to exclusion set filter in maven-core
     */
    public class ExcludesArtifactFilter extends IncludesArtifactFilter {
        public ExcludesArtifactFilter(List<String> patterns) {
            super(patterns);
        }
    
        @Override
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 1.3K bytes
    - Click Count (0)
  6. guava-testlib/src/com/google/common/collect/testing/testers/ListHashCodeTester.java

    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    import java.lang.reflect.Method;
    import org.junit.Ignore;
    
    /**
     * Tests {@link java.util.List#hashCode}.
     *
     * @author George van den Driessche
     */
    @GwtCompatible
    @Ignore("test runners must not instantiate and run this directly, only via suites we build")
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 2K bytes
    - Click Count (0)
  7. api/maven-api-core/src/main/java/org/apache/maven/api/services/DependencyResolver.java

         * @param node the {@link Node} to flatten, must not be {@code null}
         * @param scope an optional {@link PathScope} to filter out dependencies
         * @return the flattened list of node
         * @throws DependencyResolverException
         */
        List<Node> flatten(@Nonnull Session session, @Nonnull Node node, @Nullable PathScope scope)
                throws DependencyResolverException;
    
        @Nonnull
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed Oct 16 14:15:37 GMT 2024
    - 9.4K bytes
    - Click Count (0)
  8. guava/src/com/google/common/collect/AbstractMapBasedMultimap.java

        return new WrappedCollection(key, collection, null);
      }
    
      final List<V> wrapList(
          @ParametricNullness K key, List<V> list, @Nullable WrappedCollection ancestor) {
        return (list instanceof RandomAccess)
            ? new RandomAccessWrappedList(key, list, ancestor)
            : new WrappedList(key, list, ancestor);
      }
    
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Nov 17 22:50:48 GMT 2025
    - 48.4K bytes
    - Click Count (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/testers/ListAddTester.java

    import com.google.common.collect.testing.features.CollectionSize;
    import java.lang.reflect.Method;
    import java.util.List;
    import org.junit.Ignore;
    
    /**
     * A generic JUnit test which tests {@code add(Object)} operations on a list. Can't be invoked
     * directly; please see {@link com.google.common.collect.testing.ListTestSuiteBuilder}.
     *
     * @author Chris Povirk
     */
    @GwtCompatible
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 3.4K bytes
    - Click Count (0)
  10. src/main/java/org/codelibs/fess/app/web/api/admin/webconfig/ApiAdminWebconfigAction.java

         */
        // GET /api/admin/webconfig/settings
        // PUT /api/admin/webconfig/settings
        @Execute
        public JsonResponse<ApiResult> settings(final SearchBody body) {
            validateApi(body, messages -> {});
            final WebConfigPager pager = copyBeanToNewBean(body, WebConfigPager.class);
            final List<WebConfig> list = webConfigService.getWebConfigList(pager);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Aug 07 03:06:29 GMT 2025
    - 8.8K bytes
    - Click Count (0)
Back to Top