Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 180 for requireNonNull (0.08 sec)

  1. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 26 17:43:39 UTC 2021
    - 4.5K bytes
    - Viewed (0)
  2. impl/maven-core/src/main/java/org/apache/maven/configuration/DefaultBeanConfigurationRequest.java

            return this;
        }
    
        private Plugin findPlugin(Model model, String groupId, String artifactId) {
            if (Objects.requireNonNull(groupId, "groupId cannot be null").isEmpty()) {
                throw new IllegalArgumentException("groupId cannot be empty");
            }
            if (Objects.requireNonNull(artifactId, "artifactId cannot be null").isEmpty()) {
                throw new IllegalArgumentException("artifactId cannot be empty");
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  3. impl/maven-core/src/main/java/org/apache/maven/internal/aether/TypeRegistryAdapter.java

    import org.eclipse.aether.artifact.ArtifactTypeRegistry;
    
    import static java.util.Objects.requireNonNull;
    
    class TypeRegistryAdapter implements ArtifactTypeRegistry {
        private final TypeRegistry typeRegistry;
    
        TypeRegistryAdapter(TypeRegistry typeRegistry) {
            this.typeRegistry = requireNonNull(typeRegistry, "typeRegistry");
        }
    
        @Override
        public ArtifactType get(String typeId) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2K bytes
    - Viewed (0)
  4. guava/src/com/google/common/util/concurrent/ThreadFactoryBuilder.java

            // TODO(b/139735208): Figure out what to do when the factory returns null.
            requireNonNull(thread);
            if (nameFormat != null) {
              // requireNonNull is safe because we create `count` if (and only if) we have a nameFormat.
              thread.setName(format(nameFormat, requireNonNull(count).getAndIncrement()));
            }
            if (daemon != null) {
              thread.setDaemon(daemon);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 14 22:50:54 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/graph/StandardMutableNetwork.java

        if (nodeU == null) {
          return false;
        }
    
        // requireNonNull is safe because of the edgeToReferenceNode check above.
        NetworkConnections<N, E> connectionsU = requireNonNull(nodeConnections.get(nodeU));
        N nodeV = connectionsU.adjacentNode(edge);
        NetworkConnections<N, E> connectionsV = requireNonNull(nodeConnections.get(nodeV));
        connectionsU.removeOutEdge(edge);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 26 17:43:39 UTC 2021
    - 5.7K bytes
    - Viewed (0)
  6. compat/maven-model-builder/src/main/java/org/apache/maven/model/io/DefaultModelReader.java

        @Override
        public Model read(File input, Map<String, ?> options) throws IOException {
            Objects.requireNonNull(input, "input cannot be null");
            return read(input.toPath(), options);
        }
    
        @Override
        public Model read(Path path, Map<String, ?> options) throws IOException {
            Objects.requireNonNull(path, "path cannot be null");
    
            try (InputStream in = Files.newInputStream(path)) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/AbstractMapBasedMultiset.java

          canRemove = true;
          /*
           * requireNonNull is safe because occurrencesLeft starts at 0, forcing us to initialize
           * currentEntry above. After that, we never clear it.
           */
          return requireNonNull(currentEntry).getKey();
        }
    
        @Override
        public void remove() {
          checkRemove(canRemove);
          /*
           * requireNonNull is safe because canRemove is set to true only after we initialize
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  8. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/CommonsCliOptions.java

        protected CommonsCliOptions(String source, CLIManager cliManager, CommandLine commandLine) {
            this.source = requireNonNull(source);
            this.cliManager = requireNonNull(cliManager);
            this.commandLine = requireNonNull(commandLine);
        }
    
        @Override
        public String source() {
            return source;
        }
    
        @Override
        public Optional<Map<String, String>> userProperties() {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  9. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/DefaultVersionRangeResolver.java

                VersionScheme versionScheme) {
            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
    - 10.2K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/TreeMultiset.java

          switch (balanceFactor()) {
            case -2:
              // requireNonNull is safe because right must exist in order to get a negative factor.
              requireNonNull(right);
              if (right.balanceFactor() > 0) {
                right = right.rotateRight();
              }
              return rotateLeft();
            case 2:
              // requireNonNull is safe because left must exist in order to get a positive factor.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 34.1K bytes
    - Viewed (0)
Back to top