Search Options

Results per page
Sort
Preferred Languages
Advance

Results 201 - 210 of 316 for copyFor (0.07 sec)

  1. guava/src/com/google/common/collect/ImmutableListMultimap.java

       * undocumented and subject to change.
       *
       * @throws NullPointerException if any key or value in {@code multimap} is null
       */
      public static <K, V> ImmutableListMultimap<K, V> copyOf(
          Multimap<? extends K, ? extends V> multimap) {
        if (multimap.isEmpty()) {
          return of();
        }
    
        // TODO(lowasser): copy ImmutableSetMultimap by using asList() on the sets
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/graph/TestUtil.java

        for (Object element : set) {
          assertThat(set).contains(element);
        }
        assertThat(set).doesNotContain(new Object());
        assertThat(set).isEqualTo(ImmutableSet.copyOf(set));
        return set;
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Jan 18 02:54:30 UTC 2025
    - 4K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/testing/RelationshipTester.java

      // TODO(cpovirk): should we reject null items, since the tests already check null automatically?
      @CanIgnoreReturnValue
      public RelationshipTester<T> addRelatedGroup(Iterable<? extends T> group) {
        groups.add(ImmutableList.copyOf(group));
        return this;
      }
    
      public void test() {
        for (int groupNumber = 0; groupNumber < groups.size(); groupNumber++) {
          ImmutableList<T> group = groups.get(groupNumber);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 5.9K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/TableCollectionTest.java

                      @Override
                      protected Set<String> create(String[] elements) {
                        Table<String, Integer, Character> table =
                            ArrayTable.create(ImmutableList.copyOf(elements), ImmutableList.of(1, 2));
                        populateForRowKeySet(table, elements);
                        return table.rowKeySet();
                      }
                    })
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 35.5K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/CompactHashSet.java

       * the current capacity.
       */
      void resizeEntries(int newCapacity) {
        this.entries = Arrays.copyOf(requireEntries(), newCapacity);
        this.elements = Arrays.copyOf(requireElements(), newCapacity);
      }
    
      @CanIgnoreReturnValue
      private int resizeTable(int oldMask, int newCapacity, int targetHash, int targetEntryIndex) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 23.9K bytes
    - Viewed (0)
  6. android/guava-tests/benchmark/com/google/common/util/concurrent/StripedBenchmark.java

        Collections.shuffle(asList, new Random(0xdeadbeef));
    
        // do bulk gets with exactly 10 keys (possibly <10 stripes) (or less if numStripes is smaller)
        bulkGetSet = ImmutableList.copyOf(limit(cycle(asList), 10));
      }
    
      @Footprint
      Object sizeOfStriped() {
        return impl.get(numStripes);
      }
    
      // a place to put the locks in sizeOfPopulatedStriped so they don't get GC'd before we measure
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 4K bytes
    - Viewed (0)
  7. api/maven-api-core/src/main/java/org/apache/maven/api/services/ArtifactDeployerRequest.java

                        int retryFailedDeploymentCount) {
                    super(session, trace);
                    this.repository = requireNonNull(repository, "repository cannot be null");
                    this.artifacts = List.copyOf(requireNonNull(artifacts, "artifacts cannot be null"));
                    this.retryFailedDeploymentCount = retryFailedDeploymentCount;
                }
    
                @Nonnull
                @Override
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Feb 07 00:45:02 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  8. api/maven-api-core/src/main/java/org/apache/maven/api/services/ArtifactResolverRequest.java

                        @Nonnull Collection<? extends ArtifactCoordinates> coordinates,
                        @Nonnull List<RemoteRepository> repositories) {
                    super(session, trace);
                    this.coordinates = List.copyOf(requireNonNull(coordinates, "coordinates cannot be null"));
                    this.repositories = repositories;
                }
    
                @Nonnull
                @Override
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Feb 07 00:45:02 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  9. api/maven-api-cli/src/main/java/org/apache/maven/api/cli/ParserRequest.java

                return this;
            }
    
            public ParserRequest build() {
                return new ParserRequestImpl(
                        command,
                        commandName,
                        List.copyOf(args),
                        lookup.lookupOptional(Logger.class).orElse(logger),
                        messageBuilderFactory,
                        lookup,
                        cwd,
                        mavenHome,
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Sat Jun 07 06:22:47 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/CartesianList.java

        ImmutableList.Builder<List<E>> axesBuilder = new ImmutableList.Builder<>(lists.size());
        for (List<? extends E> list : lists) {
          List<E> copy = ImmutableList.copyOf(list);
          if (copy.isEmpty()) {
            return ImmutableList.of();
          }
          axesBuilder.add(copy);
        }
        return new CartesianList<>(axesBuilder.build());
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 31 13:15:26 UTC 2025
    - 4.7K bytes
    - Viewed (0)
Back to top