Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 108 for requireNonNull (0.19 sec)

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

          super.addAll(elements);
          return this;
        }
    
        @CanIgnoreReturnValue
        Builder<E> combine(Builder<E> other) {
          requireNonNull(impl);
          requireNonNull(other.impl);
          /*
           * For discussion of requireNonNull, see the comment on the field.
           *
           * (And I don't believe there's any situation in which we call x.combine(y) when x is a plain
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 35.2K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/graph/AbstractDirectedNetworkConnections.java

        return requireNonNull(outEdgeMap.get(edge));
      }
    
      @Override
      public N removeInEdge(E edge, boolean isSelfLoop) {
        if (isSelfLoop) {
          checkNonNegative(--selfLoopCount);
        }
        N previousNode = inEdgeMap.remove(edge);
        // We're relying on callers to call this method only with an edge that's in the graph.
        return requireNonNull(previousNode);
      }
    
      @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  3. api/maven-api-core/src/main/java/org/apache/maven/api/ProtoSession.java

            }
    
            public Builder withStartTime(@Nonnull Instant startTime) {
                this.startTime = requireNonNull(startTime, "startTime");
                return this;
            }
    
            public Builder withTopDirectory(@Nonnull Path topDirectory) {
                this.topDirectory = requireNonNull(topDirectory, "topDirectory");
                return this;
            }
    
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Thu Jul 03 14:18:26 UTC 2025
    - 7.5K bytes
    - Viewed (0)
  4. api/maven-api-core/src/main/java/org/apache/maven/api/services/Sources.java

    import org.apache.maven.api.annotations.Nullable;
    import org.apache.maven.api.cache.CacheMetadata;
    import org.apache.maven.api.cache.CacheRetention;
    
    import static java.util.Objects.requireNonNull;
    
    /**
     * Factory methods for creating different types of sources.
     * <p>
     * This class provides specialized source implementations for different use cases:
     * <ul>
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Feb 07 00:45:02 UTC 2025
    - 8K bytes
    - Viewed (0)
  5. api/maven-api-cli/src/main/java/org/apache/maven/api/cli/logging/AccumulatingLogger.java

        private final AtomicReference<List<Entry>> entries = new AtomicReference<>(new CopyOnWriteArrayList<>());
    
        @Override
        public void log(Level level, String message, Throwable error) {
            requireNonNull(level, "level");
            requireNonNull(message, "message");
            entries.get().add(new Entry(level, message, error));
        }
    
        @Override
        public List<Entry> drain() {
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Jan 31 20:56:58 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  6. api/maven-api-core/src/main/java/org/apache/maven/api/services/ModelBuilderRequest.java

            return builder(requireNonNull(request, "request cannot be null"))
                    .source(requireNonNull(source, "source cannot be null"))
                    .build();
        }
    
        @Nonnull
        static ModelBuilderRequest build(@Nonnull Session session, @Nonnull ModelSource source) {
            return builder()
                    .session(requireNonNull(session, "session cannot be null"))
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Wed Mar 26 20:54:22 UTC 2025
    - 16.3K bytes
    - Viewed (0)
  7. compat/maven-builder-support/src/main/java/org/apache/maven/building/FileSource.java

        @Deprecated
        public FileSource(File file) {
            this(Objects.requireNonNull(file, "file cannot be null").toPath());
        }
    
        /**
         * Creates a new source backed by the specified file.
         *
         * @param path The file, must not be {@code null}.
         * @since 4.0.0
         */
        public FileSource(Path path) {
            this.path = Objects.requireNonNull(path, "path cannot be null").toAbsolutePath();
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Wed Jan 15 18:51:29 UTC 2025
    - 3K bytes
    - Viewed (0)
  8. guava/src/com/google/common/graph/AbstractUndirectedNetworkConnections.java

     */
    
    package com.google.common.graph;
    
    import static com.google.common.base.Preconditions.checkNotNull;
    import static com.google.common.base.Preconditions.checkState;
    import static java.util.Objects.requireNonNull;
    
    import java.util.Collections;
    import java.util.Map;
    import java.util.Set;
    import org.jspecify.annotations.Nullable;
    
    /**
     * A base implementation of {@link NetworkConnections} for undirected networks.
     *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/graph/AbstractValueGraph.java

      }
    
      private static <N, V> Map<EndpointPair<N>, V> edgeValueMap(ValueGraph<N, V> graph) {
        return Maps.asMap(
            graph.edges(),
            edge ->
                // requireNonNull is safe because the endpoint pair comes from the graph.
                requireNonNull(graph.edgeValueOrDefault(edge.nodeU(), edge.nodeV(), null)));
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Feb 19 21:24:11 UTC 2025
    - 4K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/graph/AbstractUndirectedNetworkConnections.java

     */
    
    package com.google.common.graph;
    
    import static com.google.common.base.Preconditions.checkNotNull;
    import static com.google.common.base.Preconditions.checkState;
    import static java.util.Objects.requireNonNull;
    
    import java.util.Collections;
    import java.util.Map;
    import java.util.Set;
    import org.jspecify.annotations.Nullable;
    
    /**
     * A base implementation of {@link NetworkConnections} for undirected networks.
     *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 2.7K bytes
    - Viewed (0)
Back to top