Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for OptionalUtil (0.13 sec)

  1. src/main/java/org/codelibs/fess/util/OptionalUtil.java

     */
    package org.codelibs.fess.util;
    
    import org.dbflute.optional.OptionalEntity;
    
    /**
     * Utility class for Optional operations.
     */
    public class OptionalUtil {
    
        /**
         * Default constructor.
         */
        private OptionalUtil() {
            // Default constructor
        }
    
        /**
         * Creates an OptionalEntity from a nullable entity.
         *
         * @param <T> the type of the 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)
  2. src/test/java/org/codelibs/fess/util/OptionalUtilTest.java

            // Test multiple different types in sequence to ensure type safety
            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)
  3. src/main/java/org/codelibs/fess/ldap/LdapManager.java

            OptionalUtil.ofNullable(user.getTelephoneNumber())
                    .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)
  4. 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