Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 85 for computed (0.18 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. guava-tests/test/com/google/common/cache/CacheBuilderTest.java

        computationComplete.await();
    
        // At this point, the listener should be holding the seed value (a -> a), and the map should
        // contain the computed value (b -> b), since the clear() happened before the computation
        // completed.
        assertEquals(1, listener.size());
        RemovalNotification<String, String> notification = listener.remove();
        assertEquals("a", notification.getKey());
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Oct 03 20:10:02 GMT 2023
    - 25.5K bytes
    - Viewed (0)
  3. 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)
  4. android/guava/src/com/google/common/math/Quantiles.java

     *
     * <h3>Examples</h3>
     *
     * <p>To compute the median:
     *
     * <pre>{@code
     * double myMedian = median().compute(myDataset);
     * }</pre>
     *
     * where {@link #median()} has been statically imported.
     *
     * <p>To compute the 99th percentile:
     *
     * <pre>{@code
     * double myPercentile99 = percentiles().index(99).compute(myDataset);
     * }</pre>
     *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 17:02:53 GMT 2023
    - 29.9K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. guava/src/com/google/common/base/Verify.java

     *       same function with more clarity.
     * </ul>
     *
     * <h3>Warning about performance</h3>
     *
     * <p>Remember that parameter values for message construction must all be computed eagerly, and
     * autoboxing and varargs array creation may happen as well, even when the verification succeeds and
     * the message ends up unneeded. Performance-sensitive verification checks should continue to use
     * usual form:
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon May 17 14:07:47 GMT 2021
    - 18.5K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/base/Verify.java

     *       same function with more clarity.
     * </ul>
     *
     * <h3>Warning about performance</h3>
     *
     * <p>Remember that parameter values for message construction must all be computed eagerly, and
     * autoboxing and varargs array creation may happen as well, even when the verification succeeds and
     * the message ends up unneeded. Performance-sensitive verification checks should continue to use
     * usual form:
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon May 17 14:07:47 GMT 2021
    - 18.5K bytes
    - Viewed (0)
  9. guava/src/com/google/common/base/Splitter.java

      }
    
      /**
       * Splits {@code sequence} into string components and makes them available through an {@link
       * Iterator}, which may be lazily evaluated. If you want an eagerly computed {@link List}, use
       * {@link #splitToList(CharSequence)}. Java 8+ users may prefer {@link #splitToStream} instead.
       *
       * @param sequence the sequence of characters to split
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 24.4K bytes
    - Viewed (0)
  10. 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)
Back to top