Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 31 for ofNullable (0.09 sec)

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

                @Nonnull
                @Override
                public Optional<Path> getPath() {
                    return Optional.ofNullable(path);
                }
    
                @Nonnull
                @Override
                public Optional<Source> getSource() {
                    return Optional.ofNullable(source);
                }
    
                @Override
                public boolean isAllowStubModel() {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Thu Sep 12 06:19:14 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  2. impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultArtifactManager.java

            }
            Path path = paths.get(id);
            if (path == null && artifact instanceof DefaultArtifact) {
                path = ((DefaultArtifact) artifact).getArtifact().getPath();
            }
            return Optional.ofNullable(path);
        }
    
        @Override
        public void setPath(@Nonnull ProducedArtifact artifact, Path path) {
            String id = id(nonNull(artifact, "artifact"));
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4K bytes
    - Viewed (0)
  3. compat/maven-model-builder/src/main/java/org/apache/maven/model/profile/activation/PackagingProfileActivator.java

            return Objects.equals(p, packaging);
        }
    
        private static Optional<String> getActivationPackaging(org.apache.maven.model.Profile profile) {
            return Optional.ofNullable(profile)
                    .map(org.apache.maven.model.Profile::getDelegate)
                    .map(Profile::getActivation)
                    .map(Activation::getPackaging);
        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  4. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvn/forked/DefaultForkedMavenInvokerRequest.java

                    coreExtensions,
                    options);
            this.jvmArguments = jvmArguments;
        }
    
        @Override
        public Optional<List<String>> jvmArguments() {
            return Optional.ofNullable(jvmArguments);
        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  5. 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: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Wed Oct 16 14:15:37 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/MoreCollectors.java

          }
        }
    
        @IgnoreJRERequirement // see enclosing class (whose annotation Animal Sniffer ignores here...)
        Optional<Object> getOptional() {
          if (extras.isEmpty()) {
            return Optional.ofNullable(element);
          } else {
            throw multiples(false);
          }
        }
    
        Object getElement() {
          if (element == null) {
            throw new NoSuchElementException();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 21:21:17 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  7. impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultToolchainManager.java

                throws ToolchainManagerException {
            MavenSession s = InternalMavenSession.from(session).getMavenSession();
            return Optional.ofNullable(toolchainManagerPrivate.getToolchainFromBuildContext(type, s))
                    .map(this::toToolchain);
        }
    
        @Override
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  8. compat/maven-plugin-api/src/main/java/org/apache/maven/plugin/descriptor/PluginDescriptorBuilder.java

        }
    
        private Optional<String> extractRequiredJavaVersion(PlexusConfiguration c) {
            return Optional.ofNullable(c.getChild("requiredJavaVersion")).map(PlexusConfiguration::getValue);
        }
    
        private Optional<String> extractRequiredMavenVersion(PlexusConfiguration c) {
            return Optional.ofNullable(c.getChild("requiredMavenVersion")).map(PlexusConfiguration::getValue);
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  9. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/Utils.java

            }
            return null;
        }
    
        @Nonnull
        public static Path findMandatoryRoot(Path topDirectory) {
            requireNonNull(topDirectory, "topDirectory");
            return getCanonicalPath(Optional.ofNullable(
                            ServiceLoader.load(RootLocator.class).iterator().next().findMandatoryRoot(topDirectory))
                    .orElseThrow());
        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/util/GsaConfigParser.java

        }
    
        public OptionalEntity<WebConfig> getWebConfig() {
            return OptionalUtil.ofNullable(webConfig);
        }
    
        public OptionalEntity<FileConfig> getFileConfig() {
            return OptionalUtil.ofNullable(fileConfig);
        }
    
        public LabelType[] getLabelTypes() {
            return labelList.toArray(new LabelType[labelList.size()]);
        }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 14.1K bytes
    - Viewed (0)
Back to top