Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 34 for ofNullable (0.29 sec)

  1. 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 Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Apr 14 16:07:06 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  2. impl/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: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Thu Sep 04 18:33:16 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  3. compat/maven-compat/src/test/java/org/apache/maven/repository/LegacyRepositorySystemTest.java

                                        path = defaultArtifact.getArtifact().getPath();
                                    }
                                    return Optional.ofNullable(path);
                                }
    
                                @Override
                                public void setPath(ProducedArtifact artifact, Path path) {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Dec 16 13:41:14 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  4. 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: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Mon Dec 15 11:13:42 UTC 2025
    - 15.7K bytes
    - Viewed (1)
  5. api/maven-api-core/src/main/java/org/apache/maven/api/services/Interpolator.java

         */
        static UnaryOperator<String> memoize(UnaryOperator<String> callback) {
            Map<String, Optional<String>> cache = new HashMap<>();
            return s -> cache.computeIfAbsent(s, v -> Optional.ofNullable(callback.apply(v)))
                    .orElse(null);
        }
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Mon Jan 13 16:14:35 UTC 2025
    - 6.9K bytes
    - Viewed (0)
  6. impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultProject.java

            return project.getRootDirectory();
        }
    
        @Override
        public Optional<Project> getParent() {
            MavenProject parent = project.getParent();
            return Optional.ofNullable(session.getProject(parent));
        }
    
        @Override
        @Nonnull
        public List<Profile> getDeclaredProfiles() {
            return getModel().getProfiles();
        }
    
        @Override
        @Nonnull
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Mon Mar 24 22:23:23 UTC 2025
    - 8.7K bytes
    - Viewed (0)
  7. compat/maven-compat/src/main/java/org/apache/maven/toolchain/ToolchainManagerFactory.java

                    @Override
                    public Optional<org.apache.maven.api.Toolchain> createDefaultToolchain()
                            throws ToolchainFactoryException {
                        return Optional.ofNullable(v3Factory.createDefaultToolchain())
                                .map(ToolchainManagerFactory.this::getToolchainV4);
                    }
                });
            }
            allFactories.putAll(v4Factories);
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 31 10:58:52 UTC 2025
    - 11K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/util/GsaConfigParser.java

            return OptionalUtil.ofNullable(webConfig);
        }
    
        /**
         * Gets the file crawling configuration generated from the parsed GSA config.
         *
         * @return an optional containing the file configuration, or empty if no file URLs were found
         */
        public OptionalEntity<FileConfig> getFileConfig() {
            return OptionalUtil.ofNullable(fileConfig);
        }
    
        /**
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Fri Nov 28 16:29:12 UTC 2025
    - 21.6K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/base/Optional.java

       * reference; otherwise returns {@link Optional#absent}.
       *
       * <p><b>Comparison to {@code java.util.Optional}:</b> this method is equivalent to Java 8's
       * {@code Optional.ofNullable}.
       */
      public static <T> Optional<T> fromNullable(@Nullable T nullableReference) {
        return (nullableReference == null) ? Optional.<T>absent() : new Present<T>(nullableReference);
      }
    
      /**
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Wed Jun 04 13:03:16 UTC 2025
    - 15.4K bytes
    - Viewed (0)
  10. impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultProjectManager.java

            // Session keep tracks of the Project per project id,
            // so we cannot use session.getProject(p) for forked projects
            // which are temporary clones
            return Optional.ofNullable(getMavenProject(project).getExecutionProject())
                    .map(p -> new DefaultProject(session, p));
        }
    
        private MavenProject getMavenProject(Project project) {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Dec 17 16:17:01 UTC 2025
    - 10.9K bytes
    - Viewed (0)
Back to top