Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 6 of 6 for putIfAbsent (0.18 seconds)

  1. android/guava/src/com/google/common/cache/LocalCache.java

                ValueReference<K, V> valueReference = e.getValueReference();
                V entryValue = valueReference.get();
                // replace the old LoadingValueReference if it's live, otherwise
                // perform a putIfAbsent
                if (oldValueReference == valueReference
                    || (entryValue == null && valueReference != UNSET)) {
                  ++modCount;
                  if (oldValueReference.isActive()) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 143.5K bytes
    - Click Count (0)
  2. guava/src/com/google/common/collect/Maps.java

        @Override
        public void replaceAll(BiFunction<? super K, ? super V, ? extends V> function) {
          throw new UnsupportedOperationException();
        }
    
        @Override
        public @Nullable V putIfAbsent(K key, V value) {
          throw new UnsupportedOperationException();
        }
    
        @Override
        public boolean remove(@Nullable Object key, @Nullable Object value) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 163.4K bytes
    - Click Count (0)
  3. guava/src/com/google/common/cache/LocalCache.java

                ValueReference<K, V> valueReference = e.getValueReference();
                V entryValue = valueReference.get();
                // replace the old LoadingValueReference if it's live, otherwise
                // perform a putIfAbsent
                if (oldValueReference == valueReference
                    || (entryValue == null && valueReference != UNSET)) {
                  ++modCount;
                  if (oldValueReference.isActive()) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 148.9K bytes
    - Click Count (0)
  4. guava/src/com/google/common/collect/MapMakerInternalMap.java

        checkNotNull(key);
        checkNotNull(value);
        int hash = hash(key);
        return segmentFor(hash).put(key, hash, value, false);
      }
    
      @CanIgnoreReturnValue
      @Override
      public @Nullable V putIfAbsent(K key, V value) {
        checkNotNull(key);
        checkNotNull(value);
        int hash = hash(key);
        return segmentFor(hash).put(key, hash, value, true);
      }
    
      @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 89.9K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/collect/MapMakerInternalMap.java

        checkNotNull(key);
        checkNotNull(value);
        int hash = hash(key);
        return segmentFor(hash).put(key, hash, value, false);
      }
    
      @CanIgnoreReturnValue
      @Override
      public @Nullable V putIfAbsent(K key, V value) {
        checkNotNull(key);
        checkNotNull(value);
        int hash = hash(key);
        return segmentFor(hash).put(key, hash, value, true);
      }
    
      @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 89.9K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/util/concurrent/CycleDetectingLockFactory.java

        if (existing != null) {
          return existing;
        }
        Map<E, LockGraphNode> created = createNodes(clazz);
        existing = (Map<E, LockGraphNode>) lockGraphNodesPerType.putIfAbsent(clazz, created);
        return MoreObjects.firstNonNull(existing, created);
      }
    
      /**
       * For a given Enum type, creates an immutable map from each of the Enum's values to a
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 36K bytes
    - Click Count (0)
Back to Top