Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 39 for computed (0.15 sec)

  1. android/guava/src/com/google/common/base/Suppliers.java

          // Because Supplier is read-heavy, we use the "double-checked locking" pattern.
          if (delegate != SUCCESSFULLY_COMPUTED) {
            synchronized (this) {
              if (delegate != SUCCESSFULLY_COMPUTED) {
                T t = delegate.get();
                value = t;
                delegate = (Supplier<T>) SUCCESSFULLY_COMPUTED;
                return t;
              }
            }
          }
          // This is safe because we checked `delegate`.
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 15.3K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/hash/Hashing.java

       * the information of these hash codes in an ordered fashion. That is, whenever two equal hash
       * codes are produced by two calls to this method, it is <i>as likely as possible</i> that each
       * was computed from the <i>same</i> input hash codes in the <i>same</i> order.
       *
       * @throws IllegalArgumentException if {@code hashCodes} is empty, or the hash codes do not all
       *     have the same bit length
       */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 09 00:37:15 GMT 2024
    - 29.2K bytes
    - Viewed (0)
  3. guava/src/com/google/common/base/Suppliers.java

          // Because Supplier is read-heavy, we use the "double-checked locking" pattern.
          if (delegate != SUCCESSFULLY_COMPUTED) {
            synchronized (this) {
              if (delegate != SUCCESSFULLY_COMPUTED) {
                T t = delegate.get();
                value = t;
                delegate = (Supplier<T>) SUCCESSFULLY_COMPUTED;
                return t;
              }
            }
          }
          // This is safe because we checked `delegate`.
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 15.3K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/base/PredicatesTest.java

      }
    
      public void testHashCodeForBooleanOperations() {
        Predicate<@Nullable Integer> p1 = Predicates.isNull();
        Predicate<@Nullable Integer> p2 = isOdd();
    
        // Make sure that hash codes are not computed per-instance.
        assertEqualHashCode(Predicates.not(p1), Predicates.not(p1));
    
        assertEqualHashCode(Predicates.and(p1, p2), Predicates.and(p1, p2));
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 32.4K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/Multisets.java

          }
        }
      }
    
      /**
       * Returns the expected number of distinct elements given the specified elements. The number of
       * distinct elements is only computed if {@code elements} is an instance of {@code Multiset};
       * otherwise the default value of 11 is returned.
       */
      static int inferDistinctElements(Iterable<?> elements) {
        if (elements instanceof Multiset) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 41.7K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/ImmutableMap.java

       * values are merged using the specified merging function. If the merging function returns {@code
       * null}, then the collector removes the value that has been computed for the key thus far (though
       * future occurrences of the key would reinsert it).
       *
       * <p>Entries will appear in the encounter order of the first occurrence of the key.
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 41.7K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/ImmutableMap.java

       * values are merged using the specified merging function. If the merging function returns {@code
       * null}, then the collector removes the value that has been computed for the key thus far (though
       * future occurrences of the key would reinsert it).
       *
       * <p>Entries will appear in the encounter order of the first occurrence of the key.
       *
       * @since 21.0
       */
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 44.1K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/MapsTest.java

        // Ensure that referenceMap, which doesn't use WithExpectedSize, ends up with the same table
        // size as the other two maps. If it ended up with a smaller size that would imply that we
        // computed the wrong initial capacity.
        for (int i = 0; i < size; i++) {
          referenceMap.put(i, null);
        }
        assertWithMessage("table size after adding " + size + " elements")
            .that(initialBuckets)
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 16:06:01 GMT 2024
    - 67.2K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/MapsTest.java

        // Ensure that referenceMap, which doesn't use WithExpectedSize, ends up with the same table
        // size as the other two maps. If it ended up with a smaller size that would imply that we
        // computed the wrong initial capacity.
        for (int i = 0; i < size; i++) {
          referenceMap.put(i, null);
        }
        assertWithMessage("table size after adding " + size + " elements")
            .that(initialBuckets)
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 04 16:06:01 GMT 2024
    - 64.3K bytes
    - Viewed (0)
  10. guava/src/com/google/common/cache/LocalCache.java

      }
    
      @Override
      @CheckForNull
      public V compute(
          K key, BiFunction<? super K, ? super @Nullable V, ? extends @Nullable V> function) {
        checkNotNull(key);
        checkNotNull(function);
        int hash = hash(key);
        return segmentFor(hash).compute(key, hash, function);
      }
    
      @Override
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 150.3K bytes
    - Viewed (0)
Back to top