Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for valueGet (0.24 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/google/SortedSetMultimapAsMapTester.java

          SortedSet<V> valueSet = (SortedSet<V>) valueCollection;
          assertEquals(multimap().valueComparator(), valueSet.comparator());
        }
      }
    
      public void testAsMapGetImplementsSortedSet() {
        for (K key : multimap().keySet()) {
          SortedSet<V> valueSet = (SortedSet<V>) multimap().asMap().get(key);
          assertEquals(multimap().valueComparator(), valueSet.comparator());
        }
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Oct 01 17:18:04 GMT 2021
    - 2.3K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/LinkedHashMultimap.java

       * @return a new decorated set containing a collection of values for one key
       */
      @Override
      Collection<V> createCollection(@ParametricNullness K key) {
        return new ValueSet(key, valueSetCapacity);
      }
    
      /**
       * {@inheritDoc}
       *
       * <p>If {@code values} is not empty and the multimap already contains a mapping for {@code key},
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 23.6K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/ImmutableSetMultimap.java

            valuesBuilder.add(requireNonNull(stream.readObject()));
          }
          ImmutableSet<Object> valueSet = valuesBuilder.build();
          if (valueSet.size() != valueCount) {
            throw new InvalidObjectException("Duplicate key-value pairs exist for key " + key);
          }
          builder.put(key, valueSet);
          tmpSize += valueCount;
        }
    
        ImmutableMap<Object, ImmutableSet<Object>> tmpMap;
        try {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 23.6K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/HashBiMap.java

            return false;
          }
        }
      }
    
      @LazyInit private transient Set<V> valueSet;
    
      @Override
      public Set<V> values() {
        Set<V> result = valueSet;
        return (result == null) ? valueSet = new ValueSet() : result;
      }
    
      final class ValueSet extends View<K, V, V> {
        ValueSet() {
          super(HashBiMap.this);
        }
    
        @Override
        @ParametricNullness
    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)
  5. guava-tests/test/com/google/common/collect/MapMakerInternalMapTest.java

        WeakValueReference<Object, Object, ?> valueRef = segment.getWeakValueReferenceForTesting(entry);
    
        // clear absent
        assertFalse(segment.clearValueForTesting(key, hash, valueRef));
    
        segment.setTableEntryForTesting(0, entry);
        // don't increment count; this is used during computation
        assertTrue(segment.clearValueForTesting(key, hash, valueRef));
        // no notification sent with clearValue
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 35.1K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/MapMakerInternalMapTest.java

        WeakValueReference<Object, Object, ?> valueRef = segment.getWeakValueReferenceForTesting(entry);
    
        // clear absent
        assertFalse(segment.clearValueForTesting(key, hash, valueRef));
    
        segment.setTableEntryForTesting(0, entry);
        // don't increment count; this is used during computation
        assertTrue(segment.clearValueForTesting(key, hash, valueRef));
        // no notification sent with clearValue
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 35.1K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/AbstractBiMap.java

        }
      }
    
      @LazyInit @CheckForNull private transient Set<V> valueSet;
    
      @Override
      public Set<V> values() {
        /*
         * We can almost reuse the inverse's keySet, except we have to fix the
         * iteration order so that it is consistent with the forward map.
         */
        Set<V> result = valueSet;
        return (result == null) ? valueSet = new ValueSet() : result;
      }
    
      @WeakOuter
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Aug 24 01:40:03 GMT 2023
    - 14.6K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/cache/LocalCacheTest.java

        LoadingValueReference<Object, Object> valueRef = new LoadingValueReference<>();
        entry.setValueReference(valueRef);
    
        // absent
        assertFalse(segment.removeLoadingValue(key, hash, valueRef));
    
        // live
        table.set(0, entry);
        // don't increment count; this is used during computation
        assertTrue(segment.removeLoadingValue(key, hash, valueRef));
        // no notification sent with removeLoadingValue
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 14 23:06:48 GMT 2024
    - 112.3K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

        LoadingValueReference<Object, Object> valueRef = new LoadingValueReference<>();
        entry.setValueReference(valueRef);
    
        // absent
        assertFalse(segment.removeLoadingValue(key, hash, valueRef));
    
        // live
        table.set(0, entry);
        // don't increment count; this is used during computation
        assertTrue(segment.removeLoadingValue(key, hash, valueRef));
        // no notification sent with removeLoadingValue
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 14 23:06:48 GMT 2024
    - 110.7K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/cache/AbstractCacheTest.java

    public class AbstractCacheTest extends TestCase {
    
      public void testGetIfPresent() {
        final AtomicReference<Object> valueRef = new AtomicReference<>();
        Cache<Object, Object> cache =
            new AbstractCache<Object, Object>() {
              @Override
              public @Nullable Object getIfPresent(Object key) {
                return valueRef.get();
              }
            };
    
        assertNull(cache.getIfPresent(new Object()));
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 6.2K bytes
    - Viewed (0)
Back to top