Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for requireNonNull (0.13 sec)

  1. 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 Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Sep 22 21:07:18 UTC 2025
    - 52.9K bytes
    - Viewed (0)
  2. 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 @J2ktIncompatible private static final long serialVersionUID = 0;
      }
    
      /**
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Sep 22 18:35:44 UTC 2025
    - 86.5K bytes
    - Viewed (0)
  3. impl/maven-core/src/main/java/org/apache/maven/project/MavenProject.java

         * @since 4.0.0
         */
        public void addSourceRoot(@Nonnull ProjectScope scope, @Nonnull Language language, @Nonnull Path directory) {
            directory = getBaseDirectory()
                    .resolve(Objects.requireNonNull(directory, "directory cannot be null"))
                    .normalize();
            addSourceRoot(new DefaultSourceRoot(scope, language, directory));
        }
    
        /**
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Aug 29 12:47:20 UTC 2025
    - 67K 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 Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 64.3K bytes
    - Viewed (0)
  5. 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 Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 16 12:42:11 UTC 2025
    - 51.4K bytes
    - Viewed (0)
  6. 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 Dec 28 03:35:09 UTC 2025
    - Last Modified: Sun Mar 30 23:08:08 UTC 2025
    - 55.3K bytes
    - Viewed (0)
Back to top