Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 74 for submit (0.24 sec)

  1. guava-tests/test/com/google/common/cache/LocalCacheTest.java

                  return key + "Load";
                }
    
                @Override
                public ListenableFuture<String> reload(String key, String oldValue) {
                  return refreshExecutor.submit(
                      () -> {
                        reloadStarted.countDown();
    
                        Thread blockingForRefresh = threadAboutToBlockForRefresh.get();
                        while (blockingForRefresh.isAlive()
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 14 23:06:48 GMT 2024
    - 112.3K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

                  return key + "Load";
                }
    
                @Override
                public ListenableFuture<String> reload(String key, String oldValue) {
                  return refreshExecutor.submit(
                      () -> {
                        reloadStarted.countDown();
    
                        Thread blockingForRefresh = threadAboutToBlockForRefresh.get();
                        while (blockingForRefresh.isAlive()
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 14 23:06:48 GMT 2024
    - 110.7K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/util/concurrent/Futures.java

       *
       * @throws RejectedExecutionException if the task cannot be scheduled for execution
       * @since 28.2
       */
      public static <O extends @Nullable Object> ListenableFuture<O> submit(
          Callable<O> callable, Executor executor) {
        TrustedListenableFutureTask<O> task = TrustedListenableFutureTask.create(callable);
        executor.execute(task);
        return task;
      }
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 59.6K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/OrderingTest.java

            list.add(random.nextInt(10 * i + j + 1));
          }
    
          for (int seed = 1; seed < seeds; seed++) {
            int k = random.nextInt(10 * seed);
            assertEquals(ordering.sortedCopy(list).subList(0, k), ordering.leastOf(list, k));
          }
        }
      }
    
      public void testLeastOfIterableLargeK() {
        List<Integer> list = Arrays.asList(4, 2, 3, 5, 1);
        assertEquals(
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 42.5K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/OrderingTest.java

            list.add(random.nextInt(10 * i + j + 1));
          }
    
          for (int seed = 1; seed < seeds; seed++) {
            int k = random.nextInt(10 * seed);
            assertEquals(ordering.sortedCopy(list).subList(0, k), ordering.leastOf(list, k));
          }
        }
      }
    
      public void testLeastOfIterableLargeK() {
        List<Integer> list = Arrays.asList(4, 2, 3, 5, 1);
        assertEquals(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 42.5K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/TreeMultimapNaturalTest.java

        assertEquals(ImmutableMap.of("google", googleValues, "foo", fooValues), asMap.headMap("h"));
        assertEquals(ImmutableMap.of("google", googleValues), asMap.subMap("g", "h"));
      }
    
      public void testTailSetClear() {
        TreeMultimap<String, Integer> multimap = TreeMultimap.create();
        multimap.put("a", 1);
        multimap.put("a", 11);
        multimap.put("b", 2);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 22.6K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/Collections2.java

           */
          requireNonNull(nextPermutation);
    
          int l = findNextL(j);
          Collections.swap(nextPermutation, j, l);
          int n = nextPermutation.size();
          Collections.reverse(nextPermutation.subList(j + 1, n));
        }
    
        int findNextJ() {
          /*
           * requireNonNull is safe because we don't clear nextPermutation until we're done calling this
           * method.
           */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 22.8K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/SetsTest.java

        assertEquals(ImmutableSortedSet.of(4, 6, 8, 10), Sets.subSet(set, Range.atLeast(4)));
        assertEquals(ImmutableSortedSet.of(8, 10), Sets.subSet(set, Range.atLeast(7)));
        assertEquals(empty, Sets.subSet(set, Range.atLeast(20)));
    
        assertEquals(set, Sets.subSet(set, Range.greaterThan(0)));
        assertEquals(ImmutableSortedSet.of(6, 8, 10), Sets.subSet(set, Range.greaterThan(4)));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 49.3K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

              keySet.getSubSet(fromIndex, toIndex), valueList.subList(fromIndex, toIndex));
        }
      }
    
      /**
       * This method returns a {@code ImmutableSortedMap}, consisting of the entries whose keys are less
       * than {@code toKey}.
       *
       * <p>The {@link SortedMap#headMap} documentation states that a submap of a submap throws an
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 53.2K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/Synchronized.java

        @Override
        public NavigableMap<K, V> subMap(
            K fromKey, boolean fromInclusive, K toKey, boolean toInclusive) {
          synchronized (mutex) {
            return navigableMap(delegate().subMap(fromKey, fromInclusive, toKey, toInclusive), mutex);
          }
        }
    
        @Override
        public SortedMap<K, V> subMap(K fromKey, K toKey) {
          return subMap(fromKey, true, toKey, false);
        }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 53.4K bytes
    - Viewed (0)
Back to top