Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for memoization (0.26 sec)

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

       * retrieved, cached, and returned. See: <a
       * href="http://en.wikipedia.org/wiki/Memoization">memoization</a>
       *
       * <p>The returned supplier is thread-safe. The supplier's serialized form does not contain the
       * cached value, which will be recalculated when {@code get()} is called on the reserialized
       * instance. The actual memoization does not happen when the underlying delegate throws an
       * exception.
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 16.5K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/base/Suppliers.java

       * retrieved, cached, and returned. See: <a
       * href="http://en.wikipedia.org/wiki/Memoization">memoization</a>
       *
       * <p>The returned supplier is thread-safe. The supplier's serialized form does not contain the
       * cached value, which will be recalculated when {@code get()} is called on the reserialized
       * instance. The actual memoization does not happen when the underlying delegate throws an
       * exception.
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 16.5K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/base/SuppliersTest.java

        // it still should only have executed once due to memoization
        assertEquals(1, countingSupplier.calls);
    
        Thread.sleep(150);
    
        assertEquals(20, (int) memoizedSupplier.get());
        // old value expired
        assertEquals(2, countingSupplier.calls);
    
        assertEquals(20, (int) memoizedSupplier.get());
        // it still should only have executed twice due to memoization
        assertEquals(2, countingSupplier.calls);
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 17.9K bytes
    - Viewed (0)
Back to top