Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for initialValue (0.05 sec)

  1. guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java

        ListeningExecutorService executor = newDirectExecutorService();
        ThreadLocal<Integer> threadLocalCount =
            new ThreadLocal<Integer>() {
              @Override
              protected Integer initialValue() {
                return 0;
              }
            };
        Runnable incrementTask =
            new Runnable() {
              @Override
              public void run() {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Dec 12 00:25:21 UTC 2025
    - 26.5K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java

        ListeningExecutorService executor = newDirectExecutorService();
        ThreadLocal<Integer> threadLocalCount =
            new ThreadLocal<Integer>() {
              @Override
              protected Integer initialValue() {
                return 0;
              }
            };
        Runnable incrementTask =
            new Runnable() {
              @Override
              public void run() {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Dec 12 00:25:21 UTC 2025
    - 26.5K bytes
    - Viewed (0)
  3. guava/src/com/google/common/util/concurrent/CycleDetectingLockFactory.java

      // of allocation done on lock()/unlock().
      private static final ThreadLocal<List<LockGraphNode>> acquiredLocks =
          new ThreadLocal<List<LockGraphNode>>() {
            @Override
            protected List<LockGraphNode> initialValue() {
              return newArrayListWithCapacity(3);
            }
          };
    
      /**
       * A Throwable used to record a stack trace that illustrates an example of a specific lock
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Sep 11 17:06:34 UTC 2025
    - 35.9K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/hash/BloomFilterTest.java

    public class BloomFilterTest extends TestCase {
      private static final int NUM_PUTS = 100_000;
      private static final ThreadLocal<Random> random =
          new ThreadLocal<Random>() {
            @Override
            protected Random initialValue() {
              return new Random();
            }
          };
    
      private static final int GOLDEN_PRESENT_KEY = random.get().nextInt();
    
      @AndroidIncompatible // OutOfMemoryError
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 18:19:59 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/CycleDetectingLockFactory.java

      // of allocation done on lock()/unlock().
      private static final ThreadLocal<List<LockGraphNode>> acquiredLocks =
          new ThreadLocal<List<LockGraphNode>>() {
            @Override
            protected List<LockGraphNode> initialValue() {
              return newArrayListWithCapacity(3);
            }
          };
    
      /**
       * A Throwable used to record a stack trace that illustrates an example of a specific lock
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Sep 11 17:06:34 UTC 2025
    - 35.9K bytes
    - Viewed (0)
Back to top