Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 635 for copyref (3.52 sec)

  1. guava-tests/test/com/google/common/primitives/ImmutableLongArrayTest.java

         */
        assertThat(ImmutableLongArray.copyOf(new long[0])).isSameInstanceAs(ImmutableLongArray.of());
      }
    
      public void testCopyOf_array_nonempty() {
        long[] array = new long[] {0, 1, 3};
        ImmutableLongArray iia = ImmutableLongArray.copyOf(array);
        array[2] = 2;
        assertThat(iia.asList()).containsExactly(0L, 1L, 3L).inOrder();
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Jun 01 09:32:35 UTC 2023
    - 20.2K bytes
    - Viewed (0)
  2. 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: Thu Jun 01 09:32:35 UTC 2023
    - 21.3K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/graph/ImmutableGraph.java

    import com.google.errorprone.annotations.Immutable;
    
    /**
     * A {@link Graph} whose elements and structural relationships will never change. Instances of this
     * class may be obtained with {@link #copyOf(Graph)}.
     *
     * <p>See the Guava User's Guide's <a
     * href="https://github.com/google/guava/wiki/GraphsExplained#immutable-implementations">discussion
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 01 16:30:37 UTC 2022
    - 7.1K bytes
    - Viewed (0)
  4. platforms/native/language-native/src/test/groovy/org/gradle/language/nativeplatform/internal/incremental/sourceparser/IncludeDirectivesSerializerTest.groovy

            def directives = DefaultIncludeDirectives.of(ImmutableList.copyOf([include1, include2, include3, include4, include5]), ImmutableList.of(), ImmutableList.of())
    
            expect:
            serialize(directives, IncludeDirectivesSerializer.INSTANCE) == directives
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/ImmutableMultimapTest.java

        assertSame(
            "copyOf(ImmutableSetMultimap) should not create a new instance",
            setMultimap,
            setMultimapCopy);
    
        ImmutableListMultimap<String, String> listMultimap = ImmutableListMultimap.of("k1", "v1");
        ImmutableMultimap<String, String> listMultimapCopy = ImmutableMultimap.copyOf(listMultimap);
        assertSame(
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 17 15:27:58 UTC 2024
    - 5K bytes
    - Viewed (0)
  6. guava-tests/benchmark/com/google/common/primitives/UnsignedBytesBenchmark.java

      @BeforeExperiment
      void setUp() throws Exception {
        Random r = new Random();
        ba1 = new byte[length];
        r.nextBytes(ba1);
        ba2 = Arrays.copyOf(ba1, ba1.length);
        // Differ at the last element
        ba3 = Arrays.copyOf(ba1, ba1.length);
        ba4 = Arrays.copyOf(ba1, ba1.length);
        ba3[ba1.length - 1] = (byte) 43;
        ba4[ba1.length - 1] = (byte) 42;
    
        javaImpl = UnsignedBytes.lexicographicalComparatorJavaImpl();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 2.8K bytes
    - Viewed (0)
  7. android/guava-tests/benchmark/com/google/common/collect/ImmutableListCreationBenchmark.java

        int dummy = 0;
        for (int rep = 0; rep < reps; rep++) {
          List<Object> builder = Lists.newArrayList();
          for (int i = 0; i < size; i++) {
            builder.add(OBJECT);
          }
          dummy += ImmutableList.copyOf(builder).size();
        }
        return dummy;
      }
    
      @Benchmark
      int copyPreSizedArrayList(int reps) {
        int size = this.size;
        int tmp = 0;
        for (int rep = 0; rep < reps; rep++) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 2.3K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/tuple.go

    				which int
    			}{tuple.ID, idx}
    			if t := selectors[key]; t != nil {
    				if selector != t {
    					selector.copyOf(t)
    				}
    				continue
    			}
    
    			// If the selector is in the wrong block copy it into the target
    			// block.
    			if selector.Block != tuple.Block {
    				t := selector.copyInto(tuple.Block)
    				selector.copyOf(t)
    				selectors[key] = t
    				continue
    			}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 26 02:52:33 UTC 2021
    - 2K bytes
    - Viewed (0)
  9. platforms/software/dependency-management/src/test/groovy/org/gradle/internal/component/external/model/IvyDependencyDescriptorTest.groovy

            def dep = createWithExcludes(requested, [])
            def moduleExclusions = new ModuleExclusions()
    
            expect:
            moduleExclusions.excludeAny(copyOf(dep.getConfigurationExcludes(configuration("from").hierarchy))) == NOTHING
            moduleExclusions.excludeAny(copyOf(dep.getConfigurationExcludes(configuration("anything").hierarchy))) == NOTHING
        }
    
        def "excludes nothing when traversing a different configuration"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 22 16:00:57 UTC 2024
    - 23K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/graph/DirectedNetworkConnections.java

      }
    
      static <N, E> DirectedNetworkConnections<N, E> ofImmutable(
          Map<E, N> inEdges, Map<E, N> outEdges, int selfLoopCount) {
        return new DirectedNetworkConnections<>(
            ImmutableBiMap.copyOf(inEdges), ImmutableBiMap.copyOf(outEdges), selfLoopCount);
      }
    
      @Override
      public Set<N> predecessors() {
        return Collections.unmodifiableSet(((BiMap<E, N>) inEdgeMap).values());
      }
    
      @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Oct 01 17:18:04 UTC 2021
    - 2.2K bytes
    - Viewed (0)
Back to top