- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for ofNullable (0.12 sec)
-
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) -
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) -
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) -
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) -
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) -
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 Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Apr 14 16:07:06 UTC 2025 - 5.6K bytes - Viewed (0) -
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) -
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 Sep 07 03:35:12 UTC 2025 - Last Modified: Sat May 31 07:20:31 UTC 2025 - 9.4K bytes - Viewed (0) -
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) -
src/main/java/org/codelibs/fess/opensearch/client/SearchEngineClient.java
} final long execTime = systemHelper.getCurrentTimeAsLong() - startTime; return searchResult.build(requestBuilder, execTime, OptionalEntity.ofNullable(response, () -> {})); } /** * Performs a search with custom conditions and result processing. * * @param <T> the result type * @param index the index name
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sun Aug 31 08:19:00 UTC 2025 - 121.9K bytes - Viewed (0)