Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 336 for getValue (0.18 sec)

  1. android/guava-tests/test/com/google/common/cache/PopulatedCachesTest.java

            assertSame(entry.getValue(), cache.asMap().putIfAbsent(entry.getKey(), newValue));
            Object newKey = new Object();
            assertNull(cache.asMap().putIfAbsent(newKey, entry.getValue()));
            // this getUnchecked() call shouldn't be a cache miss; verified below
            assertEquals(entry.getValue(), cache.getUnchecked(entry.getKey()));
            assertEquals(entry.getValue(), cache.getUnchecked(newKey));
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 15K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/StandardTable.java

              if (entry.getValue().containsKey(columnKey)) {
                @WeakOuter
                class EntryImpl extends AbstractMapEntry<R, V> {
                  @Override
                  public R getKey() {
                    return entry.getKey();
                  }
    
                  @Override
                  public V getValue() {
                    return entry.getValue().get(columnKey);
                  }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Oct 13 14:11:58 GMT 2023
    - 29.8K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/google/AbstractMultimapTester.java

      }
    
      protected final V v0() {
        return e0().getValue();
      }
    
      protected final K k1() {
        return e1().getKey();
      }
    
      protected final V v1() {
        return e1().getValue();
      }
    
      protected final K k2() {
        return e2().getKey();
      }
    
      protected final V v2() {
        return e2().getValue();
      }
    
      protected final K k3() {
        return e3().getKey();
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 6K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/LinkedListMultimapTest.java

        assertEquals(4, (int) entrya.getValue());
        assertEquals(3, (int) entryb.getValue());
    
        assertTrue(multimap.put("foo", 5));
        assertTrue(multimap.containsEntry("foo", 5));
        assertTrue(multimap.containsEntry("foo", 4));
        assertTrue(multimap.containsEntry("bar", 3));
        assertEquals(4, (int) entrya.getValue());
        assertEquals(3, (int) entryb.getValue());
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 10:16:44 GMT 2024
    - 17.5K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/google/AbstractBiMapTester.java

        for (Entry<K, V> entry : expected) {
          assertEquals(
              "Wrong key for value " + entry.getValue(),
              entry.getKey(),
              getMap().inverse().get(entry.getValue()));
        }
      }
    
      @Override
      protected void expectMissing(Entry<K, V>... entries) {
        super.expectMissing(entries);
        for (Entry<K, V> entry : entries) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 3.1K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/google/AbstractBiMapTester.java

        for (Entry<K, V> entry : expected) {
          assertEquals(
              "Wrong key for value " + entry.getValue(),
              entry.getKey(),
              getMap().inverse().get(entry.getValue()));
        }
      }
    
      @Override
      protected void expectMissing(Entry<K, V>... entries) {
        super.expectMissing(entries);
        for (Entry<K, V> entry : entries) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 3.1K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/reflect/MutableTypeToInstanceMapTest.java

        assertEquals(TypeToken.of(String.class), map.entrySet().iterator().next().getKey());
        assertEquals("test", map.entrySet().iterator().next().getValue());
        assertThrows(
            UnsupportedOperationException.class, () -> map.entrySet().iterator().next().setValue(1));
      }
    
      public void testEntrySetToArrayMutationThrows() {
        map.putInstance(String.class, "test");
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 7.9K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/google/DerivedGoogleCollectionGenerators.java

          this.samples =
              new SampleElements<>(
                  mapSamples.e0().getValue(),
                  mapSamples.e1().getValue(),
                  mapSamples.e2().getValue(),
                  mapSamples.e3().getValue(),
                  mapSamples.e4().getValue());
        }
    
        @Override
        public SampleElements<V> samples() {
          return samples;
        }
    
        @Override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 6.7K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/MapsCollectionTest.java

                        for (Entry<String, String> entry : entries) {
                          checkArgument(!bimap.containsKey(entry.getKey()));
                          bimap.put(entry.getKey(), entry.getValue());
                        }
                        return Maps.unmodifiableBiMap(bimap);
                      }
                    })
                .named("unmodifiableBiMap[HashBiMap]")
                .withFeatures(
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 32.2K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/LinkedHashMultimapTest.java

        assertEquals("foo", entry.getKey());
        assertThat(entry.getValue()).containsExactly(5, 3).inOrder();
        entry = collectionIterator.next();
        assertEquals("bar", entry.getKey());
        assertThat(entry.getValue()).containsExactly(4, 1).inOrder();
        entry = collectionIterator.next();
        assertEquals("cow", entry.getKey());
        assertThat(entry.getValue()).contains(2);
      }
    
      public void testOrderingUpdates() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 10:16:44 GMT 2024
    - 18.6K bytes
    - Viewed (0)
Back to top