Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 454 for checkNotNull (0.16 sec)

  1. android/guava/src/com/google/common/collect/CollectCollectors.java

              Function<? super T, ? extends K> keyFunction,
              Function<? super T, ? extends V> valueFunction,
              BinaryOperator<V> mergeFunction) {
        checkNotNull(comparator);
        checkNotNull(keyFunction);
        checkNotNull(valueFunction);
        checkNotNull(mergeFunction);
        return collectingAndThen(
            Collectors.toMap(
                keyFunction, valueFunction, mergeFunction, () -> new TreeMap<K, V>(comparator)),
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:21:40 GMT 2024
    - 17.2K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/util/concurrent/testing/SameThreadScheduledExecutorService.java

        Preconditions.checkNotNull(task, "task must not be null!");
        Preconditions.checkNotNull(result, "result must not be null!");
        return delegate.submit(task, result);
      }
    
      @Override
      public ListenableFuture<?> submit(Runnable task) {
        Preconditions.checkNotNull(task, "task must not be null!");
        return delegate.submit(task);
      }
    
      @Override
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Oct 06 00:47:57 GMT 2021
    - 6.4K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/util/concurrent/TestThread.java

      public void callAndAssertThrows(
          Class<? extends Throwable> expected, String methodName, Object... arguments)
          throws Exception {
        checkNotNull(expected);
        checkNotNull(methodName);
        checkNotNull(arguments);
        sendRequest(methodName, arguments);
        assertEquals(expected, getResponse(methodName).getThrowable().getClass());
      }
    
      /**
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Apr 26 20:07:17 GMT 2023
    - 10.9K bytes
    - Viewed (0)
  4. guava-testlib/test/com/google/common/testing/ClassSanityTesterTest.java

        public InstantiableFactoryMethodChosen(NotInstantiable x) {
          checkNotNull(x);
          this.name = "x1";
        }
    
        public static InstantiableFactoryMethodChosen create(NotInstantiable x) {
          return new InstantiableFactoryMethodChosen(x);
        }
    
        public static InstantiableFactoryMethodChosen create(String s) {
          checkNotNull(s);
          return new InstantiableFactoryMethodChosen("good");
        }
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Nov 16 15:12:31 GMT 2023
    - 36.3K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/util/concurrent/testing/SameThreadScheduledExecutorService.java

        Preconditions.checkNotNull(task, "task must not be null!");
        Preconditions.checkNotNull(result, "result must not be null!");
        return delegate.submit(task, result);
      }
    
      @Override
      public ListenableFuture<?> submit(Runnable task) {
        Preconditions.checkNotNull(task, "task must not be null!");
        return delegate.submit(task);
      }
    
      @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Oct 06 00:47:57 GMT 2021
    - 6.4K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/TableCollectors.java

              BinaryOperator<V> mergeFunction,
              java.util.function.Supplier<I> tableSupplier) {
        checkNotNull(rowFunction);
        checkNotNull(columnFunction);
        checkNotNull(valueFunction);
        checkNotNull(mergeFunction);
        checkNotNull(tableSupplier);
        return Collector.of(
            tableSupplier,
            (table, input) ->
                mergeTables(
                    table,
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Sat Mar 09 00:21:17 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/ContiguousSet.java

        return headSetImpl(checkNotNull(toElement), false);
      }
    
      /** @since 12.0 */
      @GwtIncompatible // NavigableSet
      @Override
      public ContiguousSet<C> headSet(C toElement, boolean inclusive) {
        return headSetImpl(checkNotNull(toElement), inclusive);
      }
    
      @Override
      public ContiguousSet<C> subSet(C fromElement, C toElement) {
        checkNotNull(fromElement);
        checkNotNull(toElement);
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 9.9K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/util/concurrent/SimpleTimeLimiter.java

        return new SimpleTimeLimiter(executor);
      }
    
      @Override
      public <T> T newProxy(
          T target, Class<T> interfaceType, long timeoutDuration, TimeUnit timeoutUnit) {
        checkNotNull(target);
        checkNotNull(interfaceType);
        checkNotNull(timeoutUnit);
        checkPositiveTimeout(timeoutDuration);
        checkArgument(interfaceType.isInterface(), "interfaceType must be an interface type");
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jun 27 14:21:11 GMT 2023
    - 9.7K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/util/concurrent/UncheckedThrowingFuture.java

        UncheckedThrowingFuture<V> future = new UncheckedThrowingFuture<V>();
        future.complete(checkNotNull(error));
        return future;
      }
    
      public static <V> ListenableFuture<V> throwingRuntimeException(RuntimeException e) {
        UncheckedThrowingFuture<V> future = new UncheckedThrowingFuture<V>();
        future.complete(checkNotNull(e));
        return future;
      }
    
      public static <V> UncheckedThrowingFuture<V> incomplete() {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 12 20:02:10 GMT 2018
    - 3.2K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/util/concurrent/TestThread.java

      public void callAndAssertThrows(
          Class<? extends Throwable> expected, String methodName, Object... arguments)
          throws Exception {
        checkNotNull(expected);
        checkNotNull(methodName);
        checkNotNull(arguments);
        sendRequest(methodName, arguments);
        assertEquals(expected, getResponse(methodName).getThrowable().getClass());
      }
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 26 20:07:17 GMT 2023
    - 10.9K bytes
    - Viewed (0)
Back to top