Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 635 for copyref (0.67 sec)

  1. guava-testlib/src/com/google/common/collect/testing/google/ListGenerators.java

      private ListGenerators() {}
    
      public static class ImmutableListOfGenerator extends TestStringListGenerator {
        @Override
        protected List<String> create(String[] elements) {
          return ImmutableList.copyOf(elements);
        }
      }
    
      public static class BuilderAddListGenerator extends TestStringListGenerator {
        @Override
        protected List<String> create(String[] elements) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 21 16:49:06 UTC 2024
    - 5K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/RegularImmutableTable.java

        ImmutableList<Cell<R, C, V>> cellList = ImmutableList.copyOf(cells);
        for (Cell<R, C, V> cell : cells) {
          rowSpaceBuilder.add(cell.getRowKey());
          columnSpaceBuilder.add(cell.getColumnKey());
        }
    
        ImmutableSet<R> rowSpace =
            (rowComparator == null)
                ? ImmutableSet.copyOf(rowSpaceBuilder)
                : ImmutableSet.copyOf(ImmutableList.sortedCopyOf(rowComparator, rowSpaceBuilder));
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top