Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for ofNullable (0.06 sec)

  1. src/test/java/org/codelibs/fess/util/OptionalUtilTest.java

            OptionalEntity<String> stringOpt = OptionalUtil.ofNullable("string");
            OptionalEntity<Integer> intOpt = OptionalUtil.ofNullable(42);
            OptionalEntity<Boolean> boolOpt = OptionalUtil.ofNullable(true);
            OptionalEntity<Date> dateOpt = OptionalUtil.ofNullable(new Date());
    
            assertTrue(stringOpt.isPresent());
            assertTrue(intOpt.isPresent());
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 07:34:10 UTC 2025
    - 13K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/ldap/LdapManager.java

                    .filter(StringUtil::isNotBlank)
                    .ifPresent(s -> entry.put(new BasicAttribute(fessConfig.getLdapAttrTelephoneNumber(), s)));
            OptionalUtil.ofNullable(user.getHomePhone())
                    .filter(StringUtil::isNotBlank)
                    .ifPresent(s -> entry.put(new BasicAttribute(fessConfig.getLdapAttrHomePhone(), s)));
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 82K bytes
    - Viewed (0)
  3. api/maven-api-cli/src/main/java/org/apache/maven/api/cli/InvokerRequest.java

            return Optional.ofNullable(parserRequest().stdIn());
        }
    
        /**
         * Returns the output stream for the Maven execution, if running in embedded mode.
         *
         * @return an {@link Optional} containing the output stream, or empty if not applicable
         */
        @Nonnull
        default Optional<OutputStream> stdOut() {
            return Optional.ofNullable(parserRequest().stdOut());
        }
    
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Wed Jun 11 13:14:09 UTC 2025
    - 6.7K bytes
    - Viewed (0)
  4. api/maven-api-core/src/main/java/org/apache/maven/api/services/SettingsBuilderRequest.java

                public Optional<Source> getInstallationSettingsSource() {
                    return Optional.ofNullable(installationSettingsSource);
                }
    
                @Nonnull
                @Override
                public Optional<Source> getProjectSettingsSource() {
                    return Optional.ofNullable(projectSettingsSource);
                }
    
                @Nonnull
                @Override
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Feb 07 00:45:02 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/util/OptionalUtil.java

         *
         * @param <T> the type of the entity
         * @param entity the entity (can be null)
         * @return the OptionalEntity
         */
        public static <T> OptionalEntity<T> ofNullable(final T entity) {
            return OptionalEntity.ofNullable(entity, () -> {});
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 1.2K bytes
    - Viewed (0)
  6. api/maven-api-core/src/main/java/org/apache/maven/api/services/ToolchainsBuilderRequest.java

                public Optional<Source> getInstallationToolchainsSource() {
                    return Optional.ofNullable(installationToolchainsSource);
                }
    
                @Nonnull
                @Override
                public Optional<Source> getUserToolchainsSource() {
                    return Optional.ofNullable(userToolchainsSource);
                }
    
                @Override
                public boolean equals(Object o) {
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Feb 07 00:45:02 UTC 2025
    - 6.3K bytes
    - Viewed (0)
  7. 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 Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Feb 07 00:45:02 UTC 2025
    - 20.8K bytes
    - Viewed (0)
  8. 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 Sep 07 03:35:12 UTC 2025
    - Last Modified: Thu Apr 03 13:33:59 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  9. 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 Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Feb 07 00:45:02 UTC 2025
    - 10.7K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/MoreCollectors.java

              throw multiples(true);
            }
            return this;
          }
        }
    
        Optional<Object> getOptional() {
          if (extras.isEmpty()) {
            return Optional.ofNullable(element);
          } else {
            throw multiples(false);
          }
        }
    
        Object getElement() {
          if (element == null) {
            throw new NoSuchElementException();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Apr 12 15:07:59 UTC 2025
    - 5.4K bytes
    - Viewed (0)
Back to top