Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for ofNullable (0.18 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. 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)
  3. 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)
  4. 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)
  5. src/test/java/org/codelibs/fess/helper/NotificationHelperTest.java

            public OptionalThing<String> getSavedSubject() {
                return OptionalThing.ofNullable(subject, () -> {
                    throw new IllegalStateException("Subject not found");
                });
            }
    
            @Override
            public OptionalThing<String> getSavedPlainText() {
                return OptionalThing.ofNullable(plainText, () -> {
                    throw new IllegalStateException("Plain text not found");
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 10 13:41:04 UTC 2025
    - 19.6K bytes
    - Viewed (0)
  6. 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 Sep 07 03:35:12 UTC 2025
    - Last Modified: Thu Jun 26 07:56:58 UTC 2025
    - 15K bytes
    - Viewed (1)
  7. 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: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 21.5K bytes
    - Viewed (0)
Back to top