Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 618 for copyBuf (0.37 sec)

  1. android/guava/src/com/google/common/collect/ImmutableSet.java

       * is unnecessary; for example, {@code copyOf(copyOf(anArrayList))} should copy the data only
       * once. This reduces the expense of habitually making defensive copies at API boundaries.
       * However, the precise conditions for skipping the copy operation are undefined.
       *
       * @throws NullPointerException if any of {@code elements} is null
       */
      public static <E> ImmutableSet<E> copyOf(Iterable<? extends E> elements) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sun Jun 02 13:36:19 UTC 2024
    - 22.5K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/BenchmarkHelpers.java

          @Override
          public <E extends Comparable<E>> Set<E> create(Collection<E> contents) {
            return ImmutableSet.copyOf(contents);
          }
        },
        ImmutableSortedSetImpl {
          @Override
          public <E extends Comparable<E>> Set<E> create(Collection<E> contents) {
            return ImmutableSortedSet.copyOf(contents);
          }
        },
        ContiguousSetImpl {
          @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Mar 04 04:06:35 UTC 2022
    - 12.3K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/graph/StandardImmutableGraphAdditionalTest.java

        assertThat(immutableGraph).isNotInstanceOf(MutableValueGraph.class);
        assertThat(immutableGraph).isEqualTo(mutableGraph);
    
        mutableGraph.addNode("B");
        assertThat(immutableGraph).isNotEqualTo(mutableGraph);
      }
    
      @Test
      public void copyOfImmutableGraph_optimized() {
        Graph<String> graph1 = ImmutableGraph.copyOf(GraphBuilder.directed().<String>build());
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Jan 09 20:24:43 UTC 2020
    - 4.5K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/graph/StandardImmutableGraphAdditionalTest.java

        assertThat(immutableGraph).isNotInstanceOf(MutableValueGraph.class);
        assertThat(immutableGraph).isEqualTo(mutableGraph);
    
        mutableGraph.addNode("B");
        assertThat(immutableGraph).isNotEqualTo(mutableGraph);
      }
    
      @Test
      public void copyOfImmutableGraph_optimized() {
        Graph<String> graph1 = ImmutableGraph.copyOf(GraphBuilder.directed().<String>build());
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Jan 09 20:24:43 UTC 2020
    - 4.5K bytes
    - Viewed (0)
  5. platforms/jvm/language-java/src/main/java/org/gradle/api/internal/tasks/compile/incremental/processing/AnnotationProcessingData.java

            this.generatedTypesByOrigin = ImmutableMap.copyOf(generatedTypesByOrigin);
            this.aggregatedTypes = ImmutableSet.copyOf(aggregatedTypes);
            this.generatedTypesDependingOnAllOthers = ImmutableSet.copyOf(generatedTypesDependingOnAllOthers);
            this.generatedResourcesByOrigin = ImmutableMap.copyOf(generatedResourcesByOrigin);
            this.generatedResourcesDependingOnAllOthers = ImmutableSet.copyOf(generatedResourcesDependingOnAllOthers);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Feb 24 12:57:52 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  6. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/manage/binding/DefaultStructBindings.java

            this.declaredViewSchemas = ImmutableSet.copyOf(declaredViewSchemas);
            this.implementedViewSchemas = ImmutableSet.copyOf(implementedViewSchemas);
            this.delegateSchema = delegateSchema;
    
            this.managedProperties = ImmutableSortedMap.copyOf(managedProperties, Ordering.natural());
            this.methodBindings = ImmutableList.copyOf(methodBindings);
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/primitives/ImmutableDoubleArrayTest.java

         */
        assertThat(ImmutableDoubleArray.copyOf(new double[0]))
            .isSameInstanceAs(ImmutableDoubleArray.of());
      }
    
      public void testCopyOf_array_nonempty() {
        double[] array = new double[] {0, 1, 3};
        ImmutableDoubleArray iia = ImmutableDoubleArray.copyOf(array);
        array[2] = 2;
        assertThat(iia.asList()).containsExactly(0.0, 1.0, 3.0).inOrder();
      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 06 15:23:21 UTC 2023
    - 20K bytes
    - Viewed (0)
  8. platforms/software/dependency-management/src/main/java/org/gradle/internal/component/external/model/ivy/DefaultMutableIvyModuleResolveMetadata.java

            this.configurationDefinitions = toMap(configurationDefinitions);
            this.artifactDefinitions = ImmutableList.copyOf(artifactDefinitions);
            this.dependencies = ImmutableList.copyOf(dependencies);
            this.excludes = ImmutableList.of();
            this.extraAttributes = ImmutableMap.of();
            this.excludes = ImmutableList.copyOf(excludes);
        }
    
        DefaultMutableIvyModuleResolveMetadata(IvyModuleResolveMetadata metadata) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 5K bytes
    - Viewed (0)
  9. android/guava-tests/benchmark/com/google/common/collect/SortedCopyBenchmark.java

        Random random = new Random();
        while (set.size() < size) {
          set.add(random.nextInt());
        }
        List<Integer> list = new ArrayList<>(set);
        inputOrder.arrange(list);
        input = ImmutableList.copyOf(list);
      }
    
      @Benchmark
      int collections(int reps) {
        int dummy = 0;
        // Yes, this could be done more elegantly
        if (mutable) {
          for (int i = 0; i < reps; i++) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 3.5K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/ssa/rewriteARM64latelower.go

    			break
    		}
    		v.copyOf(x)
    		return true
    	}
    	// match: (MOVBUreg x:(NotEqual _))
    	// result: x
    	for {
    		x := v_0
    		if x.Op != OpARM64NotEqual {
    			break
    		}
    		v.copyOf(x)
    		return true
    	}
    	// match: (MOVBUreg x:(LessThan _))
    	// result: x
    	for {
    		x := v_0
    		if x.Op != OpARM64LessThan {
    			break
    		}
    		v.copyOf(x)
    		return true
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 12 19:38:41 UTC 2024
    - 19.3K bytes
    - Viewed (0)
Back to top