Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 140 for getValue (0.17 sec)

  1. guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/LocalCache.java

          return null;
        }
        alertListenerIfPresent(key, oldValue.getValue(), RemovalCause.REPLACED);
        return oldValue.getValue();
      }
    
      @CanIgnoreReturnValue
      @Override
      public V remove(Object key) {
        Timestamped<V> stamped = cachingHashMap.remove(key);
        if (stamped != null) {
          V value = stamped.getValue();
          // `key` was in the cache, so it's a K.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 27 19:19:19 GMT 2024
    - 21.6K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/DenseImmutableTable.java

          int columnIndex = requireNonNull(columnKeyToIndex.get(columnKey));
          V existingValue = values[rowIndex][columnIndex];
          checkNoDuplicate(rowKey, columnKey, existingValue, cell.getValue());
          values[rowIndex][columnIndex] = cell.getValue();
          rowCounts[rowIndex]++;
          columnCounts[columnIndex]++;
          cellRowIndices[i] = rowIndex;
          cellColumnIndices[i] = columnIndex;
        }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 10K bytes
    - Viewed (0)
  3. android/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 May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 32.2K bytes
    - Viewed (0)
  4. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableMap.java

            checkNotNull(entry.getKey());
            checkNotNull(entry.getValue());
            @SuppressWarnings("unchecked") // all supported methods are covariant
            Entry<K, V> immutableEntry = (Entry<K, V>) entry;
            entries.add(immutableEntry);
          } else {
            entries.add(entryOf((K) entry.getKey(), (V) entry.getValue()));
          }
          return this;
        }
    
        @CanIgnoreReturnValue
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 27 19:19:19 GMT 2024
    - 17.1K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/HashBiMap.java

        @Override
        @ParametricNullness
        public K getValue() {
          updateIndex();
          // For discussion of unsafeNull() and uncheckedCastNullableTToT(), see EntryForKey.getValue().
          return (index == ABSENT) ? unsafeNull() : uncheckedCastNullableTToT(biMap.keys[index]);
        }
    
        @Override
        @ParametricNullness
        public K setValue(@ParametricNullness K key) {
          updateIndex();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 06 16:06:58 GMT 2023
    - 36.4K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java

          for (Entry<K, V> entry : entrySet) {
            assertTrue(map.containsKey(entry.getKey()));
            assertTrue(map.containsValue(entry.getValue()));
            int expectedHash =
                (entry.getKey() == null ? 0 : entry.getKey().hashCode())
                    ^ (entry.getValue() == null ? 0 : entry.getValue().hashCode());
            assertEquals(expectedHash, entry.hashCode());
            expectedEntrySetHash += expectedHash;
          }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 45.9K bytes
    - Viewed (0)
  7. android/guava-testlib/test/com/google/common/collect/testing/MapTestSuiteBuilderTests.java

                            @Override
                            public String setValue(String value) {
                              checkNotNull(value);
                              return next.setValue(value);
                            }
    
                            @Override
                            public String getValue() {
                              return next.getValue();
                            }
    
                            @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 11.5K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/TableCollectorsTest.java

      }
    
      // https://youtrack.jetbrains.com/issue/KT-58242/. Crash when getValue result (null) is unboxed
      @J2ktIncompatible
      public void testToTableNullValues() {
        Collector<Cell<String, String, Integer>, ?, Table<String, String, Integer>> collector =
            TableCollectors.toTable(
                Cell::getRowKey,
                Cell::getColumnKey,
                Cell::getValue,
                () -> {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Mar 05 16:03:18 GMT 2024
    - 11.7K bytes
    - Viewed (0)
  9. guava-testlib/test/com/google/common/collect/testing/MapTestSuiteBuilderTests.java

                            @Override
                            public String setValue(String value) {
                              checkNotNull(value);
                              return next.setValue(value);
                            }
    
                            @Override
                            public String getValue() {
                              return next.getValue();
                            }
    
                            @Override
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 11.9K bytes
    - Viewed (0)
  10. 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 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 15K bytes
    - Viewed (0)
Back to top