Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 57 for newValues (0.06 sec)

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

       *
       * @param currentValue the current value (of either base or a cell)
       * @param newValue the argument from a user update call
       * @return result of the update function
       */
      abstract long fn(long currentValue, long newValue);
    
      /**
       * Handles cases of updates involving initialization, resizing, creating new Cells, and/or
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Jun 14 17:55:55 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  2. guava/src/com/google/common/hash/Striped64.java

       *
       * @param currentValue the current value (of either base or a cell)
       * @param newValue the argument from a user update call
       * @return result of the update function
       */
      abstract long fn(long currentValue, long newValue);
    
      /**
       * Handles cases of updates involving initialization, resizing, creating new Cells, and/or
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Jun 14 17:55:55 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/ObjectCountHashMap.java

        return (K) keys[index];
      }
    
      int getValue(int index) {
        checkElementIndex(index, size);
        return values[index];
      }
    
      void setValue(int index, int newValue) {
        checkElementIndex(index, size);
        values[index] = newValue;
      }
    
      Entry<K> getEntry(int index) {
        checkElementIndex(index, size);
        return new MapEntry(index);
      }
    
      class MapEntry extends AbstractEntry<K> {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 01 22:07:10 UTC 2021
    - 15K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/RegularImmutableMap.java

       *     flooding attack
       */
      @CanIgnoreReturnValue
      @CheckForNull
      static <K, V> ImmutableMapEntry<K, V> checkNoConflictInKeyBucket(
          Object key,
          Object newValue,
          @CheckForNull ImmutableMapEntry<K, V> keyBucketHead,
          boolean throwIfDuplicateKeys)
          throws BucketOverflowException {
        int bucketSize = 0;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue May 28 18:11:09 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/MapMakerInternalMap.java

      }
    
      @CanIgnoreReturnValue
      @Override
      public boolean replace(K key, @CheckForNull V oldValue, V newValue) {
        checkNotNull(key);
        checkNotNull(newValue);
        if (oldValue == null) {
          return false;
        }
        int hash = hash(key);
        return segmentFor(hash).replace(key, hash, oldValue, newValue);
      }
    
      @CheckForNull
      @CanIgnoreReturnValue
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 90.8K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/testers/MapComputeIfAbsentTester.java

      @CollectionSize.Require(absent = ZERO)
      public void testComputeIfAbsent_nullTreatedAsAbsent() {
        initMapWithNullValue();
        assertEquals(
            "computeIfAbsent(presentAssignedToNull, function) should return newValue",
            getValueForNullKey(),
            getMap()
                .computeIfAbsent(
                    getKeyForNullValue(),
                    k -> {
                      assertEquals(getKeyForNullValue(), k);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:51:04 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java

      }
    
      private static void insertIntoReplica(Map<Integer, AtomicInteger> replica, int newValue) {
        if (replica.containsKey(newValue)) {
          replica.get(newValue).incrementAndGet();
        } else {
          replica.put(newValue, new AtomicInteger(1));
        }
      }
    
      private static void removeMinFromReplica(
          SortedMap<Integer, AtomicInteger> replica, int minValue) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 35.9K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/MapMakerInternalMap.java

      }
    
      @CanIgnoreReturnValue
      @Override
      public boolean replace(K key, @CheckForNull V oldValue, V newValue) {
        checkNotNull(key);
        checkNotNull(newValue);
        if (oldValue == null) {
          return false;
        }
        int hash = hash(key);
        return segmentFor(hash).replace(key, hash, oldValue, newValue);
      }
    
      @CheckForNull
      @CanIgnoreReturnValue
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 90.8K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/AbstractBiMap.java

          @ParametricNullness K key,
          boolean containedKey,
          @CheckForNull V oldValue,
          @ParametricNullness V newValue) {
        if (containedKey) {
          // The cast is safe because of the containedKey check.
          removeFromInverseMap(uncheckedCastNullableTToT(oldValue));
        }
        inverse.delegate.put(newValue, key);
      }
    
      @CanIgnoreReturnValue
      @Override
      @CheckForNull
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Aug 24 01:40:03 UTC 2023
    - 14.6K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/TreeRangeMap.java

          Entry<Cut<K>, RangeMapEntry<K, V>> entry = backingItr.next();
          V newValue = remappingFunction.apply(entry.getValue().getValue(), value);
          if (newValue == null) {
            backingItr.remove();
          } else {
            entry.setValue(
                new RangeMapEntry<K, V>(
                    entry.getValue().getLowerBound(), entry.getValue().getUpperBound(), newValue));
          }
        }
    
        entriesByLowerBound.putAll(gaps.build());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 26.7K bytes
    - Viewed (0)
Back to top