Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for ofNullable (0.41 sec)

  1. api/maven-api-core/src/main/java/org/apache/maven/api/services/DependencyResolverRequest.java

                @Nonnull
                @Override
                public Optional<Project> getProject() {
                    return Optional.ofNullable(project);
                }
    
                @Nonnull
                @Override
                public Optional<Artifact> getRootArtifact() {
                    return Optional.ofNullable(rootArtifact);
                }
    
                @Nonnull
                @Override
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Tue Jun 11 07:23:04 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  2. maven-core/src/main/java/org/apache/maven/RepositoryUtils.java

            if (artifact == null) {
                return null;
            }
    
            Artifact result = toArtifact(artifact);
    
            List<Exclusion> excl = Optional.ofNullable(exclusions).orElse(Collections.emptyList()).stream()
                    .map(RepositoryUtils::toExclusion)
                    .collect(Collectors.toList());
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed Feb 28 07:40:37 UTC 2024
    - 16K bytes
    - Viewed (0)
  3. api/maven-api-core/src/main/java/org/apache/maven/api/JavaPathType.java

         *
         * @return the {@code javax.tool} enumeration value corresponding to this {@code JavaPathType}
         */
        public Optional<JavaFileManager.Location> location() {
            return Optional.ofNullable(location);
        }
    
        /**
         * Returns the path type associated to the given {@code javax.tool} location.
         * This method is the converse of {@link #location()}.
         *
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Mon May 13 09:53:45 UTC 2024
    - 15K bytes
    - Viewed (0)
  4. maven-api-impl/src/test/java/org/apache/maven/internal/impl/standalone/ApiRunner.java

                private final Map<Artifact, Path> paths = new ConcurrentHashMap<>();
    
                @Override
                public Optional<Path> getPath(Artifact artifact) {
                    return Optional.ofNullable(paths.get(artifact));
                }
    
                @Override
                public void setPath(Artifact artifact, Path path) {
                    paths.put(artifact, path);
                }
            };
        }
    
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Tue Jun 11 07:23:04 UTC 2024
    - 17.1K bytes
    - Viewed (0)
Back to top