- Sort Score
- Result 10 results
- Languages All
Results 111 - 120 of 142 for ifPresent (0.29 sec)
-
guava/src/com/google/common/base/MoreObjects.java
return !((java.util.Optional<?>) value).isPresent(); } else if (value instanceof OptionalInt) { return !((OptionalInt) value).isPresent(); } else if (value instanceof OptionalLong) { return !((OptionalLong) value).isPresent(); } else if (value instanceof OptionalDouble) { return !((OptionalDouble) value).isPresent(); } else if (value instanceof Optional) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Mar 17 20:26:29 UTC 2025 - 16.6K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessJsonResourceProviderTest.java
// Verify the field naming is set to CAMEL_TO_LOWER_SNAKE OptionalThing<JsonFieldNaming> fieldNamingOpt = option.getFieldNaming(); assertTrue("Field naming should be present", fieldNamingOpt.isPresent()); assertEquals(JsonFieldNaming.CAMEL_TO_LOWER_SNAKE, fieldNamingOpt.get()); } public void test_provideMappingOption_notNull() { // Test that mapping option is never null
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 6.9K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/dict/stopwords/StopwordsFileTest.java
assertTrue(result.isPresent()); assertEquals("the", result.get().getInput()); } public void test_get_nonExistingItem() { // Load test data loadTestData(); OptionalEntity<StopwordsItem> result = stopwordsFile.get(999); assertFalse(result.isPresent()); } public void test_get_withNullList() {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 17.6K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/dict/protwords/ProtwordsFileTest.java
OptionalEntity<ProtwordsItem> item = protwordsFile.get(999); assertFalse(item.isPresent()); } public void test_get_withUnloadedData() { // Test getting item when data is not loaded yet OptionalEntity<ProtwordsItem> item = protwordsFile.get(1); assertTrue(item.isPresent()); assertEquals("test1", item.get().getInput()); }
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 20.8K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Streams.java
* otherwise returns an empty stream. */ public static <T> Stream<T> stream(com.google.common.base.Optional<T> optional) { return optional.isPresent() ? Stream.of(optional.get()) : Stream.empty(); } /** * If a value is present in {@code optional}, returns a stream containing only that element, * otherwise returns an empty stream. *
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 37K bytes - Viewed (0) -
android/guava/src/com/google/common/base/Present.java
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue Apr 15 22:14:00 UTC 2025 - 2.5K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/helper/SearchLogHelperTest.java
assertFalse(result.isPresent()); } catch (Exception e) { // Expected in test environment assertTrue(true); } } public void test_getUserInfo_nullUserCode() { try { var result = searchLogHelper.getUserInfo(null); assertFalse(result.isPresent()); } catch (Exception e) {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Jul 19 23:49:30 UTC 2025 - 6K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessUserTimeZoneProcessProviderTest.java
OptionalThing<TimeZone> result = provider.findBusinessTimeZone(runtimeMeta, requestManager); // Verify that empty optional is returned assertNotNull(result); assertFalse(result.isPresent()); } // Test getRequestedTimeZone() method public void test_getRequestedTimeZone() { // Execute TimeZone result = provider.getRequestedTimeZone(requestManager);
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 6.9K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/job/ScriptExecutorJob.java
if (jobExecutor == null) { throw new ScheduledJobException("No jobExecutor: " + scriptType); } if (!jobManager.findJobByUniqueOf(LaJobUnique.of(id)).isPresent()) { if (logger.isDebugEnabled()) { logger.debug("Job {} is running.", id); } return; } TimeoutTask task = null; try {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 5.5K bytes - Viewed (0) -
android/guava/src/com/google/common/io/ByteSource.java
* * @throws IOException if an I/O error occurs * @since 15.0 */ public boolean isEmpty() throws IOException { Optional<Long> sizeIfKnown = sizeIfKnown(); if (sizeIfKnown.isPresent()) { return sizeIfKnown.get() == 0L; } Closer closer = Closer.create(); try { InputStream in = closer.register(openStream()); return in.read() == -1; } catch (Throwable e) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Mar 20 20:55:20 UTC 2025 - 25.7K bytes - Viewed (0)