Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 182 for Callable (0.23 sec)

  1. android/guava/src/com/google/common/util/concurrent/MoreExecutors.java

        return new WrappingExecutorService(service) {
          @Override
          protected <T extends @Nullable Object> Callable<T> wrapTask(Callable<T> callable) {
            return Callables.threadRenaming(callable, nameSupplier);
          }
    
          @Override
          protected Runnable wrapTask(Runnable command) {
            return Callables.threadRenaming(command, nameSupplier);
          }
        };
      }
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 41.8K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/util/concurrent/ClosingFuture.java

         * @param <U> the type returned by the function
         */
        public interface ClosingFunction5<
            V1 extends @Nullable Object,
            V2 extends @Nullable Object,
            V3 extends @Nullable Object,
            V4 extends @Nullable Object,
            V5 extends @Nullable Object,
            U extends @Nullable Object> {
          /**
           * Applies this function to five inputs, or throws an exception if unable to do so.
           *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 98.5K 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. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultModelBuilder.java

            Supplier<T> s = asSupplier(supplier);
            if (cache == null) {
                return s.get();
            } else {
                return cache.computeIfAbsent(groupId, artifactId, version, tag, s);
            }
        }
    
        private static <T> T cache(ModelCache cache, Source source, String tag, Callable<T> supplier) {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri May 03 08:48:38 GMT 2024
    - 61.5K bytes
    - Viewed (0)
  5. maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuilder.java

                }
                if (failure) {
                    return results;
                }
    
                List<Callable<List<ProjectBuildingResult>>> callables = interimResults.stream()
                        .map(interimResult ->
                                (Callable<List<ProjectBuildingResult>>) () -> doBuild(projectIndex, interimResult))
                        .collect(Collectors.toList());
    
                try {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu May 02 15:10:38 GMT 2024
    - 56.9K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/testing/FreshValueGenerator.java

      @Generates
      static <K, V> Map<K, V> generateMap(@Nullable K key, @Nullable V value) {
        return generateHashdMap(key, value);
      }
    
      @Generates
      static <K, V> HashMap<K, V> generateHashdMap(@Nullable K key, @Nullable V value) {
        return generateLinkedHashMap(key, value);
      }
    
      @Generates
      static <K, V> LinkedHashMap<K, V> generateLinkedHashMap(@Nullable K key, @Nullable V value) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 28.6K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/MapsTransformValuesUnmodifiableIteratorTest.java

                    return (from == null) ? true : null;
                  }
                });
    
        Set<Entry<@Nullable String, @Nullable Boolean>> entries = map.entrySet();
        assertTrue(entries.contains(Maps.immutableEntry("a", true)));
        assertTrue(entries.contains(Maps.<String, @Nullable Boolean>immutableEntry("b", null)));
        assertTrue(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 12.2K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/OrderingTest.java

        List<@Nullable Integer> list4 = Lists.newArrayList(1, 2);
        List<@Nullable Integer> list5 = Lists.newArrayList(1, null, 2);
        List<@Nullable Integer> list6 = Lists.newArrayList(2);
        List<@Nullable Integer> list7 = Lists.newArrayList(nullInt);
        List<@Nullable Integer> list8 = Lists.newArrayList(nullInt, nullInt);
        List<@Nullable List<@Nullable Integer>> list =
    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)
  9. android/guava-tests/test/com/google/common/collect/OrderingTest.java

        List<@Nullable Integer> list4 = Lists.newArrayList(1, 2);
        List<@Nullable Integer> list5 = Lists.newArrayList(1, null, 2);
        List<@Nullable Integer> list6 = Lists.newArrayList(2);
        List<@Nullable Integer> list7 = Lists.newArrayList(nullInt);
        List<@Nullable Integer> list8 = Lists.newArrayList(nullInt, nullInt);
        List<@Nullable List<@Nullable Integer>> list =
    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)
  10. api/maven-api-core/src/main/java/org/apache/maven/api/services/ToolchainsBuilderRequest.java

         */
        @Nonnull
        Optional<Source> getUserToolchainsSource();
    
        @Nonnull
        static ToolchainsBuilderRequest build(
                @Nonnull Session session, @Nullable Source globalToolchainsSource, @Nullable Source userToolchainsSource) {
            return builder()
                    .session(nonNull(session, "session cannot be null"))
                    .globalToolchainsSource(globalToolchainsSource)
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Mon Mar 25 10:50:01 GMT 2024
    - 5K bytes
    - Viewed (0)
Back to top