Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 53 of 53 for putIfAbsent (0.27 sec)

  1. 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) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Nov 17 22:50:48 UTC 2025
    - 163.5K bytes
    - Viewed (0)
  2. 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()) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Sep 11 19:35:11 UTC 2025
    - 148.9K bytes
    - Viewed (0)
  3. 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
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Sep 22 18:35:44 UTC 2025
    - 89.9K bytes
    - Viewed (0)
Back to top