Search Options

Results per page
Sort
Preferred Languages
Advance

Results 691 - 700 of 3,421 for list (0.03 sec)

  1. android/guava-tests/test/com/google/common/graph/GraphMutationTest.java

          assertThat(graph.edges()).hasSize(NUM_EDGES);
          AbstractGraphTest.validateGraph(graph);
        }
      }
    
      private static <L extends List<T> & RandomAccess, T> T getRandomElement(L list, Random gen) {
        return list.get(gen.nextInt(list.size()));
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Aug 18 16:17:46 UTC 2017
    - 4.2K bytes
    - Viewed (0)
  2. api/maven-api-core/src/main/java/org/apache/maven/api/Project.java

            List<ProducedArtifact> artifacts = getArtifacts();
            return artifacts.size() == 2 ? Optional.of(artifacts.get(1)) : Optional.empty();
        }
    
        /**
         * Returns the project artifacts as immutable list. Elements are the project POM artifact and the artifact
         * produced by this project build, if applicable. Hence, the returned list may have one or two elements
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Sat Sep 28 09:03:24 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  3. tests/test_validate_response_dataclass.py

    from typing import List, Optional
    
    import pytest
    from fastapi import FastAPI
    from fastapi.exceptions import ResponseValidationError
    from fastapi.testclient import TestClient
    from pydantic.dataclasses import dataclass
    
    app = FastAPI()
    
    
    @dataclass
    class Item:
        name: str
        price: Optional[float] = None
        owner_ids: Optional[List[int]] = None
    
    
    @app.get("/items/invalid", response_model=Item)
    def get_invalid():
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/app/pager/FileConfigPager.java

        }
    
        public void setCurrentPageNumber(final int currentPageNumber) {
            this.currentPageNumber = currentPageNumber;
        }
    
        public List<Integer> getPageNumberList() {
            return pageNumberList;
        }
    
        public void setPageNumberList(final List<Integer> pageNumberList) {
            this.pageNumberList = pageNumberList;
        }
    
        protected int getDefaultPageSize() {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/suggest/index/writer/SuggestWriterResult.java

    import java.util.Collections;
    import java.util.List;
    
    public class SuggestWriterResult {
        protected List<Throwable> failures = Collections.synchronizedList(new ArrayList<>());
    
        public void addFailure(final Throwable t) {
            failures.add(t);
        }
    
        public boolean hasFailure() {
            return !failures.isEmpty();
        }
    
        public List<Throwable> getFailures() {
            return failures;
        }
    
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  6. compat/maven-artifact/src/main/java/org/apache/maven/artifact/DefaultArtifact.java

        private ArtifactFilter dependencyFilter;
    
        private ArtifactHandler artifactHandler;
    
        private List<String> dependencyTrail;
    
        private volatile String version;
    
        private VersionRange versionRange;
    
        private volatile boolean resolved;
    
        private boolean release;
    
        private List<ArtifactVersion> availableVersions;
    
        private Map<Object, ArtifactMetadata> metadataMap;
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  7. api/maven-api-core/src/main/java/org/apache/maven/api/services/ModelBuilder.java

     */
    package org.apache.maven.api.services;
    
    import java.util.List;
    
    import org.apache.maven.api.Service;
    import org.apache.maven.api.model.Model;
    
    public interface ModelBuilder extends Service {
    
        String MODEL_VERSION_4_0_0 = "4.0.0";
    
        String MODEL_VERSION_4_1_0 = "4.1.0";
    
        List<String> VALID_MODEL_VERSIONS = List.of(MODEL_VERSION_4_0_0, MODEL_VERSION_4_1_0);
    
        ModelBuilderSession newSession();
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Sat Sep 28 09:03:24 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  8. 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);
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  9. tests/test_invalid_path_param.py

    from typing import Dict, List, Tuple
    
    import pytest
    from fastapi import FastAPI
    from pydantic import BaseModel
    
    
    def test_invalid_sequence():
        with pytest.raises(AssertionError):
            app = FastAPI()
    
            class Item(BaseModel):
                title: str
    
            @app.get("/items/{id}")
            def read_items(id: List[Item]):
                pass  # pragma: no cover
    
    
    def test_invalid_tuple():
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon Jun 03 17:59:40 UTC 2019
    - 1.7K bytes
    - Viewed (0)
  10. compat/maven-compat/src/main/java/org/apache/maven/repository/metadata/ClasspathContainer.java

    import java.util.ArrayList;
    import java.util.Iterator;
    import java.util.List;
    
    import org.apache.maven.artifact.ArtifactScopeEnum;
    
    /**
     * classpath container that is aware of the classpath scope
     *
     *
     */
    @Deprecated
    public class ClasspathContainer implements Iterable<ArtifactMetadata> {
        private List<ArtifactMetadata> classpath;
    
        private ArtifactScopeEnum scope;
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.2K bytes
    - Viewed (0)
Back to top