Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 199 for ImmutableSet (0.09 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. android/guava/src/com/google/common/collect/RegularImmutableMap.java

              return alternatingKeysAndValues[keyIndex ^ 1];
            }
          }
        }
      }
    
      @Override
      ImmutableSet<Entry<K, V>> createEntrySet() {
        return new EntrySet<>(this, alternatingKeysAndValues, 0, size);
      }
    
      static class EntrySet<K, V> extends ImmutableSet<Entry<K, V>> {
        private final transient ImmutableMap<K, V> map;
        private final transient @Nullable Object[] alternatingKeysAndValues;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 15 22:32:14 UTC 2024
    - 22.7K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/graph/AbstractNetworkTest.java

        assertThat(networkAsMutableNetwork.nodes()).contains(N1);
      }
    
      @Test
      public void addNode_existingNode() {
        assume().that(graphIsMutable()).isTrue();
    
        addNode(N1);
        ImmutableSet<Integer> nodes = ImmutableSet.copyOf(networkAsMutableNetwork.nodes());
        assertFalse(networkAsMutableNetwork.addNode(N1));
        assertThat(networkAsMutableNetwork.nodes()).containsExactlyElementsIn(nodes);
      }
    
      @Test
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jan 22 17:29:38 UTC 2024
    - 32.7K bytes
    - Viewed (0)
  4. android/guava-testlib/test/com/google/common/testing/ArbitraryInstancesTest.java

      }
    
      public void testGet_collections() {
        assertEquals(ImmutableSet.of().iterator(), ArbitraryInstances.get(Iterator.class));
        assertFalse(ArbitraryInstances.get(PeekingIterator.class).hasNext());
        assertFalse(ArbitraryInstances.get(ListIterator.class).hasNext());
        assertEquals(ImmutableSet.of(), ArbitraryInstances.get(Iterable.class));
        assertEquals(ImmutableSet.of(), ArbitraryInstances.get(Set.class));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 21.8K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/io/ByteSourceTest.java

      private static final ByteSink BROKEN_WRITE_SINK = new TestByteSink(WRITE_THROWS);
    
      private static final ImmutableSet<ByteSource> BROKEN_SOURCES =
          ImmutableSet.of(BROKEN_CLOSE_SOURCE, BROKEN_OPEN_SOURCE, BROKEN_READ_SOURCE);
      private static final ImmutableSet<ByteSink> BROKEN_SINKS =
          ImmutableSet.of(BROKEN_CLOSE_SINK, BROKEN_OPEN_SINK, BROKEN_WRITE_SINK);
    
      public void testCopyExceptions() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/ForwardingSetTest.java

                  public Set apply(Set delegate) {
                    return wrap(delegate);
                  }
                });
      }
    
      public void testEquals() {
        Set<String> set1 = ImmutableSet.of("one");
        Set<String> set2 = ImmutableSet.of("two");
        new EqualsTester()
            .addEqualityGroup(set1, wrap(set1), wrap(set1))
            .addEqualityGroup(set2, wrap(set2))
            .testEquals();
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 17 15:49:06 UTC 2023
    - 5K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/graph/AbstractGraphTest.java

        assertThat(graph.nodes()).contains(N1);
      }
    
      @Test
      public void addNode_existingNode() {
        assume().that(graphIsMutable()).isTrue();
    
        addNode(N1);
        ImmutableSet<Integer> nodes = ImmutableSet.copyOf(graph.nodes());
        assertThat(graphAsMutableGraph.addNode(N1)).isFalse();
        assertThat(graph.nodes()).containsExactlyElementsIn(nodes);
      }
    
      @Test
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jan 22 17:29:38 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/graph/AbstractStandardUndirectedNetworkTest.java

      }
    
      @Test
      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);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/HashMultimapTest.java

       */
      public void testCreate() {
        HashMultimap<String, Integer> multimap = HashMultimap.create();
        multimap.put("foo", 1);
        multimap.put("bar", 2);
        multimap.put("foo", 3);
        assertEquals(ImmutableSet.of(1, 3), multimap.get("foo"));
        assertEquals(2, multimap.expectedValuesPerKey);
      }
    
      public void testCreateFromMultimap() {
        HashMultimap<String, Integer> multimap = HashMultimap.create();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/HashMultimapTest.java

       */
      public void testCreate() {
        HashMultimap<String, Integer> multimap = HashMultimap.create();
        multimap.put("foo", 1);
        multimap.put("bar", 2);
        multimap.put("foo", 3);
        assertEquals(ImmutableSet.of(1, 3), multimap.get("foo"));
        assertEquals(2, multimap.expectedValuesPerKey);
      }
    
      public void testCreateFromMultimap() {
        HashMultimap<String, Integer> multimap = HashMultimap.create();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 4.3K bytes
    - Viewed (0)
Back to top