- Sort Score
- Result 10 results
- Languages All
Results 91 - 100 of 180 for requireNonNull (0.11 sec)
-
guava/src/com/google/common/graph/StandardNetwork.java
} @Override public EndpointPair<N> incidentNodes(E edge) { N nodeU = checkedReferenceNode(edge); // requireNonNull is safe because checkedReferenceNode made sure the edge is in the network. N nodeV = requireNonNull(nodeConnections.get(nodeU)).adjacentNode(edge); return EndpointPair.of(this, nodeU, nodeV); } @Override public Set<N> adjacentNodes(N node) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Jan 22 17:29:38 UTC 2024 - 6.9K bytes - Viewed (0) -
android/guava/src/com/google/common/graph/ImmutableValueGraph.java
private static <N, V> GraphConnections<N, V> connectionsOf(ValueGraph<N, V> graph, N node) { Function<N, V> successorNodeToValueFn = (N successorNode) -> // requireNonNull is safe because the endpoint pair comes from the graph. requireNonNull(graph.edgeValueOrDefault(node, successorNode, null)); return graph.isDirected() ? DirectedGraphConnections.ofImmutable(
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Feb 01 16:30:37 UTC 2022 - 7.7K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/AggregateFuture.java
*/ final void init() { /* * requireNonNull is safe because this is called from the constructor after `futures` is set but * before releaseResources could be called (because we have not yet set up any of the listeners * that could call it, nor exposed this Future for users to call cancel() on). */ requireNonNull(futures); // Corner case: List is empty.
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 25 13:13:32 UTC 2024 - 16.2K bytes - Viewed (0) -
compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/DefaultVersionResolver.java
RepositoryEventDispatcher repositoryEventDispatcher) { this.metadataResolver = Objects.requireNonNull(metadataResolver, "metadataResolver cannot be null"); this.syncContextFactory = Objects.requireNonNull(syncContextFactory, "syncContextFactory cannot be null"); this.repositoryEventDispatcher = Objects.requireNonNull(repositoryEventDispatcher, "repositoryEventDispatcher cannot be null"); }
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 20.3K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/graph/DefaultProjectDependencyGraph.java
return new ArrayList<>(sorter.getSortedProjects()); } public List<MavenProject> getDownstreamProjects(MavenProject project, boolean transitive) { Objects.requireNonNull(project, "project cannot be null"); Set<String> projectIds = new HashSet<>(); getDownstreamProjects(ProjectSorter.getId(project), projectIds, transitive);
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 5.8K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultLog.java
import java.util.function.Supplier; import org.apache.maven.api.plugin.Log; import org.slf4j.Logger; import static java.util.Objects.requireNonNull; public class DefaultLog implements Log { private final Logger logger; public DefaultLog(Logger logger) { this.logger = requireNonNull(logger); } public void debug(CharSequence content) { if (isDebugEnabled()) {
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 4.6K bytes - Viewed (0) -
guava/src/com/google/common/base/Throwables.java
/* * The following requireNonNull calls are safe because we use jlaStackTrace() only if * lazyStackTraceIsLazy() returns true. */ @Override public StackTraceElement get(int n) { return (StackTraceElement) invokeAccessibleNonThrowingMethod( requireNonNull(getStackTraceElementMethod), requireNonNull(jla), t, n); } @Override
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Jul 19 16:02:36 UTC 2024 - 20.7K bytes - Viewed (0) -
guava/src/com/google/common/collect/CompactLinkedHashSet.java
* CompactHashMap. */ private int[] requirePredecessors() { return requireNonNull(predecessor); } private int[] requireSuccessors() { return requireNonNull(successor); } /* * We don't define getPredecessor+getSuccessor and setPredecessor+setSuccessor here because
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 09 00:15:47 UTC 2024 - 9.7K bytes - Viewed (0) -
guava/src/com/google/common/collect/RegularImmutableBiMap.java
(n == entryArray.length) ? (Entry<K, V>[]) entryArray : createEntryArray(n); int hashCode = 0; for (int i = 0; i < n; i++) { // requireNonNull is safe because the first `n` elements have been filled in. Entry<K, V> entry = requireNonNull(entryArray[i]); K key = entry.getKey(); V value = entry.getValue(); checkEntryNotNull(key, value); int keyHash = key.hashCode();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 11.3K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/extension/internal/CoreExportsProvider.java
this(new CoreExports(CoreExtensionEntry.discoverFrom(coreRealm.getRealm()))); } public CoreExportsProvider(CoreExports exports) { this.exports = Objects.requireNonNull(exports); } public CoreExports get() { return exports; }
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 1.5K bytes - Viewed (0)