Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 461 for checkNotNull (0.26 sec)

  1. 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 Apr 05 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 16:21:40 GMT 2024
    - 16.7K bytes
    - Viewed (0)
  2. guava/src/com/google/common/base/Preconditions.java

        }
      }
    
      /*
       * Preconditions.checkNotNull is *intended* for performing eager null checks on parameters that a
       * nullness checker can already "prove" are non-null. That means that the first parameter to
       * checkNotNull *should* be annotated to require it to be non-null.
       *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Wed Feb 14 15:46:55 GMT 2024
    - 52.9K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/util/concurrent/Callables.java

      @J2ktIncompatible
      @GwtIncompatible
      public static <T extends @Nullable Object> AsyncCallable<T> asAsyncCallable(
          Callable<T> callable, ListeningExecutorService listeningExecutorService) {
        checkNotNull(callable);
        checkNotNull(listeningExecutorService);
        return () -> listeningExecutorService.submit(callable);
      }
    
      /**
       * Wraps the given callable such that for the duration of {@link Callable#call} the thread that is
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 18:32:03 GMT 2023
    - 4.4K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/graph/AbstractDirectedNetworkConnections.java

        checkNotNull(edge);
        checkNotNull(node);
    
        if (isSelfLoop) {
          checkPositive(++selfLoopCount);
        }
        N previousNode = inEdgeMap.put(edge, node);
        checkState(previousNode == null);
      }
    
      @Override
      public void addOutEdge(E edge, N node) {
        checkNotNull(edge);
        checkNotNull(node);
    
        N previousNode = outEdgeMap.put(edge, node);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 26 17:43:39 GMT 2021
    - 4.5K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/io/CharStreams.java

            return copyReaderToBuilder((Reader) from, (StringBuilder) to);
          } else {
            return copyReaderToWriter((Reader) from, asWriter(to));
          }
        }
    
        checkNotNull(from);
        checkNotNull(to);
        long total = 0;
        CharBuffer buf = createBuffer();
        while (from.read(buf) != -1) {
          Java8Compatibility.flip(buf);
          to.append(buf);
          total += buf.remaining();
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 17 14:35:11 GMT 2023
    - 10.9K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/eventbus/SubscriberExceptionContext.java

       */
      SubscriberExceptionContext(
          EventBus eventBus, Object event, Object subscriber, Method subscriberMethod) {
        this.eventBus = checkNotNull(eventBus);
        this.event = checkNotNull(event);
        this.subscriber = checkNotNull(subscriber);
        this.subscriberMethod = checkNotNull(subscriberMethod);
      }
    
      /**
       * @return The {@link EventBus} that handled the event and the subscriber. Useful for broadcasting
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Apr 22 13:05:46 GMT 2021
    - 2.2K bytes
    - Viewed (0)
  7. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSortedSet.java

          Comparator<? super E> comparator, E... elements) {
        checkNotNull(elements);
        switch (elements.length) {
          case 0:
            return emptySet(comparator);
          default:
            SortedSet<E> delegate = new TreeSet<E>(comparator);
            for (E element : elements) {
              checkNotNull(element);
              delegate.add(element);
            }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 27 19:19:19 GMT 2024
    - 15.3K bytes
    - Viewed (0)
  8. 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 Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Oct 06 00:47:57 GMT 2021
    - 6.4K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/io/SourceSinkFactories.java

            return new String(factoryExpectedForNothing, Charsets.UTF_8) + checkNotNull(data);
          }
    
          @Override
          public void tearDown() throws IOException {
            factory.tearDown();
          }
        };
      }
    
      public static ByteSourceFactory asSlicedByteSourceFactory(
          final ByteSourceFactory factory, final long off, final long len) {
        checkNotNull(factory);
        return new ByteSourceFactory() {
          @Override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Apr 06 12:56:11 GMT 2023
    - 12.7K bytes
    - Viewed (0)
  10. 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)
Back to top