Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 5,891 for Copy (0.46 sec)

  1. android/guava-tests/test/com/google/common/collect/ImmutableSortedMapTest.java

        ImmutableSortedMap<String, Integer> copy =
            ImmutableSortedMap.copyOf(Collections.<String, Integer>emptyMap());
        assertEquals(Collections.<String, Integer>emptyMap(), copy);
        assertSame(copy, ImmutableSortedMap.copyOf(copy));
        assertSame(Ordering.natural(), copy.comparator());
      }
    
      public void testCopyOfSingletonMap() {
        ImmutableSortedMap<String, Integer> copy =
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 27K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/ArrayTableTest.java

        original.put("foo", 3, 'c');
        Table<String, Integer, @Nullable Character> copy = ArrayTable.create(original);
        assertEquals(4, copy.size());
        assertEquals((Character) 'a', copy.get("foo", 1));
        assertEquals((Character) 'b', copy.get("bar", 1));
        assertEquals((Character) 'c', copy.get("foo", 3));
        assertNull(copy.get("bar", 3));
        original.put("foo", 1, 'd');
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 16:54:11 GMT 2024
    - 17.5K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/ArrayTableTest.java

        original.put("foo", 3, 'c');
        Table<String, Integer, @Nullable Character> copy = ArrayTable.create(original);
        assertEquals(4, copy.size());
        assertEquals((Character) 'a', copy.get("foo", 1));
        assertEquals((Character) 'b', copy.get("bar", 1));
        assertEquals((Character) 'c', copy.get("foo", 3));
        assertNull(copy.get("bar", 3));
        original.put("foo", 1, 'd');
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 04 16:54:11 GMT 2024
    - 17.5K bytes
    - Viewed (0)
  4. maven-core/src/test/java/org/apache/maven/execution/DefaultMavenExecutionTest.java

    class DefaultMavenExecutionTest {
        @Test
        void testCopyDefault() {
            MavenExecutionRequest original = new DefaultMavenExecutionRequest();
            MavenExecutionRequest copy = DefaultMavenExecutionRequest.copy(original);
            assertNotNull(copy);
            assertNotSame(copy, original);
        }
    
        @Test
        void testResultWithNullTopologicallySortedProjectsIsEmptyList() {
            MavenExecutionResult result = new DefaultMavenExecutionResult();
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Wed Sep 06 08:39:32 GMT 2023
    - 1.9K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/EvictingQueueTest.java

        original.add("two");
        original.add("three");
    
        EvictingQueue<String> copy = SerializableTester.reserialize(original);
        assertEquals(copy.maxSize, original.maxSize);
        assertEquals("one", copy.remove());
        assertEquals("two", copy.remove());
        assertEquals("three", copy.remove());
        assertTrue(copy.isEmpty());
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 6.7K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/graph/Graphs.java

      }
    
      /** Creates a mutable copy of {@code graph} with the same nodes and edges. */
      public static <N> MutableGraph<N> copyOf(Graph<N> graph) {
        MutableGraph<N> copy = GraphBuilder.from(graph).expectedNodeCount(graph.nodes().size()).build();
        for (N node : graph.nodes()) {
          copy.addNode(node);
        }
        for (EndpointPair<N> edge : graph.edges()) {
          copy.putEdge(edge.nodeU(), edge.nodeV());
        }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 21.2K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/ImmutableTableTest.java

      }
    
      private static <R, C, V> void validateViewOrdering(Table<R, C, V> original, Table<R, C, V> copy) {
        assertThat(copy.cellSet()).containsExactlyElementsIn(original.cellSet()).inOrder();
        assertThat(copy.rowKeySet()).containsExactlyElementsIn(original.rowKeySet()).inOrder();
        assertThat(copy.values()).containsExactlyElementsIn(original.values()).inOrder();
      }
    
      public void testCopyOf() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 04 16:54:11 GMT 2024
    - 19.6K bytes
    - Viewed (0)
  8. build-logic/integration-testing/src/main/kotlin/gradlebuild/integrationtests/ide/AndroidStudioProvisioningPlugin.kt

    /*
     * Copyright 2023 the original author or authors.
     *
     * Licensed under the Apache License, Version 2.0 (the "License");
     * you may not use this file except in compliance with the License.
     * You may obtain a copy of the License at
     *
     *      http://www.apache.org/licenses/LICENSE-2.0
     *
     * Unless required by applicable law or agreed to in writing, software
     * distributed under the License is distributed on an "AS IS" BASIS,
    Plain Text
    - Registered: Wed Mar 27 11:36:08 GMT 2024
    - Last Modified: Fri Dec 22 13:46:27 GMT 2023
    - 5.4K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/helper/ThemeHelper.java

                            Files.copy(zis, path, StandardCopyOption.REPLACE_EXISTING);
                        } else if ("css".equals(names[0])) {
                            names[0] = themeName;
                            final Path path = ResourceUtil.getCssPath(names);
                            Files.createDirectories(path.getParent());
                            Files.copy(zis, path, StandardCopyOption.REPLACE_EXISTING);
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 5.7K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/graph/GraphsTest.java

        Graph<Integer> directedGraph = buildDirectedGraph();
    
        Graph<Integer> copy = copyOf(directedGraph);
        assertThat(copy).isEqualTo(directedGraph);
      }
    
      @Test
      public void copyOf_undirectedGraph() {
        Graph<Integer> undirectedGraph = buildUndirectedGraph();
    
        Graph<Integer> copy = copyOf(undirectedGraph);
        assertThat(copy).isEqualTo(undirectedGraph);
      }
    
      @Test
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 24.9K bytes
    - Viewed (0)
Back to top