Search Options

Results per page
Sort
Preferred Languages
Advance

Results 191 - 200 of 300 for copy_off (0.1 sec)

  1. guava-tests/test/com/google/common/graph/AbstractStandardDirectedNetworkTest.java

      }
    
      @Test
      public void addEdge_existingEdgeBetweenSameNodes() {
        assume().that(graphIsMutable()).isTrue();
    
        addEdge(N1, N2, E12);
        ImmutableSet<String> edges = ImmutableSet.copyOf(network.edges());
        assertThat(networkAsMutableNetwork.addEdge(N1, N2, E12)).isFalse();
        assertThat(network.edges()).containsExactlyElementsIn(edges);
      }
    
      @Test
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/ImmutableTableTest.java

        assertThrows(NullPointerException.class, () -> builder.put('a', 1, null));
      }
    
      private static <R, C, V> void validateTableCopies(Table<R, C, V> original) {
        Table<R, C, V> copy = ImmutableTable.copyOf(original);
        assertEquals(original, copy);
        validateViewOrdering(original, copy);
    
        Table<R, C, V> built = ImmutableTable.<R, C, V>builder().putAll(original).build();
        assertEquals(original, built);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/graph/AbstractStandardUndirectedNetworkTest.java

      public void addEdge_existingEdgeBetweenSameNodes() {
        assume().that(graphIsMutable()).isTrue();
    
        assertThat(networkAsMutableNetwork.addEdge(N1, N2, E12)).isTrue();
        ImmutableSet<String> edges = ImmutableSet.copyOf(network.edges());
        assertThat(networkAsMutableNetwork.addEdge(N1, N2, E12)).isFalse();
        assertThat(network.edges()).containsExactlyElementsIn(edges);
        assertThat(networkAsMutableNetwork.addEdge(N2, N1, E12)).isFalse();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/ContiguousSetTest.java

        for (int i = 0; i < 3; i++) {
          assertEquals(i + 1, list.get(i).intValue());
        }
        assertEquals(ImmutableList.of(1, 2, 3), ImmutableList.copyOf(list.iterator()));
        assertEquals(ImmutableList.of(1, 2, 3), ImmutableList.copyOf(list.toArray(new Integer[0])));
      }
    
      @J2ktIncompatible
      @GwtIncompatible // suite
      public static class BuiltTests extends TestCase {
        public static Test suite() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 19K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/Collections2Test.java

                  public Collection<String> create(String[] elements) {
                    List<String> unfiltered = newArrayList();
                    unfiltered.add("yyy");
                    unfiltered.addAll(ImmutableList.copyOf(elements));
                    unfiltered.add("zzz");
                    return Collections2.filter(unfiltered, LENGTH_1);
                  }
                })
            .named("Collections2.filter, no nulls")
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Feb 21 10:16:44 UTC 2024
    - 19.7K bytes
    - Viewed (0)
  6. android/guava-testlib/test/com/google/common/testing/EqualsTesterTest.java

        private final String name;
    
        NamedObject(String name) {
          this.name = Preconditions.checkNotNull(name);
        }
    
        NamedObject addPeers(String... names) {
          peerNames.addAll(ImmutableList.copyOf(names));
          return this;
        }
    
        @Override
        public boolean equals(@Nullable Object obj) {
          if (obj instanceof NamedObject) {
            NamedObject that = (NamedObject) obj;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 15:00:32 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  7. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Apr 25 11:57:12 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/graph/StandardMutableNetwork.java

          return false;
        }
    
        // Since views are returned, we need to copy the edges that will be removed.
        // Thus we avoid modifying the underlying view while iterating over it.
        for (E edge : ImmutableList.copyOf(connections.incidentEdges())) {
          removeEdge(edge);
        }
        nodeConnections.remove(node);
        return true;
      }
    
      @Override
      @CanIgnoreReturnValue
      public boolean removeEdge(E edge) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 26 17:43:39 UTC 2021
    - 5.7K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/graph/ValueGraphTest.java

      MutableValueGraph<Integer, String> graph;
    
      @After
      public void validateGraphState() {
        assertStronglyEquivalent(graph, Graphs.copyOf(graph));
        assertStronglyEquivalent(graph, ImmutableValueGraph.copyOf(graph));
    
        Graph<Integer> asGraph = graph.asGraph();
        AbstractGraphTest.validateGraph(asGraph);
        assertThat(graph.nodes()).isEqualTo(asGraph.nodes());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 17.4K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/util/concurrent/ServiceManager.java

       *     are any duplicate services.
       */
      public ServiceManager(Iterable<? extends Service> services) {
        ImmutableList<Service> copy = ImmutableList.copyOf(services);
        if (copy.isEmpty()) {
          // Having no services causes the manager to behave strangely. Notably, listeners are never
          // fired. To avoid this we substitute a placeholder service.
          logger
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:51:36 UTC 2024
    - 33.5K bytes
    - Viewed (0)
Back to top