Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for requireNonNull (0.17 sec)

  1. guava/src/com/google/common/collect/ImmutableSortedMap.java

                  0,
                  size,
                  (e1, e2) -> {
                    // requireNonNull is safe because the first `size` elements have been filled in.
                    requireNonNull(e1);
                    requireNonNull(e2);
                    return comparator.compare(e1.getKey(), e2.getKey());
                  });
              // requireNonNull is safe because the first `size` elements have been filled in.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 50.4K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

                  0,
                  size,
                  (e1, e2) -> {
                    // requireNonNull is safe because the first `size` elements have been filled in.
                    requireNonNull(e1);
                    requireNonNull(e2);
                    return comparator.compare(e1.getKey(), e2.getKey());
                  });
              // requireNonNull is safe because the first `size` elements have been filled in.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 53K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/Multimaps.java

          stream.defaultReadObject();
          factory = (Supplier<? extends Collection<V>>) requireNonNull(stream.readObject());
          Map<K, Collection<V>> map = (Map<K, Collection<V>>) requireNonNull(stream.readObject());
          setMap(map);
        }
    
        @GwtIncompatible // java serialization not supported
        @J2ktIncompatible
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 21:21:17 UTC 2024
    - 86.3K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/util/concurrent/Futures.java

            ImmutableList<AbstractFuture<T>> delegates, int inputFutureIndex) {
          /*
           * requireNonNull is safe because we accepted an Iterable of non-null Future instances, and we
           * don't overwrite an element in the array until after reading it.
           */
          ListenableFuture<? extends T> inputFuture = requireNonNull(inputFutures[inputFutureIndex]);
          // Null out our reference to this future, so it can be GCed
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 13:13:32 UTC 2024
    - 64.7K bytes
    - Viewed (0)
  5. guava/src/com/google/common/util/concurrent/Futures.java

            ImmutableList<AbstractFuture<T>> delegates, int inputFutureIndex) {
          /*
           * requireNonNull is safe because we accepted an Iterable of non-null Future instances, and we
           * don't overwrite an element in the array until after reading it.
           */
          ListenableFuture<? extends T> inputFuture = requireNonNull(inputFutures[inputFutureIndex]);
          // Null out our reference to this future, so it can be GCed
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 13:13:32 UTC 2024
    - 64.4K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/Iterators.java

            if (!hasNext()) {
              throw new NoSuchElementException();
            }
            /*
             * requireNonNull is safe because our callers always pass non-null arguments. Each element
             * of the array becomes null only when we iterate past it and then clear it.
             */
            I result = requireNonNull(elements[index]);
            elements[index] = null;
            index++;
            return result;
          }
        };
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 50.3K bytes
    - Viewed (0)
  7. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelBuilder.java

            String artifactId = parent.getArtifactId();
            String version = parent.getVersion();
    
            ModelResolver modelResolver = request.getModelResolver();
            Objects.requireNonNull(
                    modelResolver,
                    String.format(
                            "request.modelResolver cannot be null (parent POM %s and POM %s)",
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 83.6K bytes
    - Viewed (0)
Back to top