- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 27 for IsPresent (0.06 sec)
-
src/test/java/org/codelibs/fess/util/OptionalUtilTest.java
OptionalEntity<Date> dateOpt = OptionalUtil.ofNullable(new Date()); assertTrue(stringOpt.isPresent()); assertTrue(intOpt.isPresent()); assertTrue(boolOpt.isPresent()); assertTrue(dateOpt.isPresent()); assertEquals("string", stringOpt.get()); assertEquals(Integer.valueOf(42), intOpt.get());
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Jul 12 07:34:10 UTC 2025 - 13K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessUserLocaleProcessProviderTest.java
OptionalThing<Locale> result3 = provider.findBusinessLocale(null, mockRequestManager); // Verify all return same result assertTrue(result1.isPresent()); assertTrue(result2.isPresent()); assertTrue(result3.isPresent()); assertEquals(Locale.GERMANY, result1.get()); assertEquals(Locale.GERMANY, result2.get()); assertEquals(Locale.GERMANY, result3.get()); }
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 11K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/dict/mapping/CharMappingFileTest.java
assertFalse(result.isPresent()); } // Test get method with valid data public void test_get_validData() throws Exception { writeTestFile("a,b => c\nd,e => f\n"); OptionalEntity<CharMappingItem> result1 = charMappingFile.get(1L); assertTrue(result1.isPresent()); CharMappingItem item1 = result1.get();
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 18.5K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/util/GsaConfigParserTest.java
+ "</globalparams></config></eef>"; parser.parse(new InputSource(new StringReader(minimalXml))); assertTrue(parser.getWebConfig().isPresent()); assertFalse(parser.getFileConfig().isPresent()); assertEquals(0, parser.getLabelTypes().length); } public void test_parseWithFileUrls() { GsaConfigParser parser = new GsaConfigParser();
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Jul 12 07:34:10 UTC 2025 - 11.4K 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) -
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/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/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) -
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/io/CharSource.java
* @since 19.0 */ public long length() throws IOException { Optional<Long> lengthIfKnown = lengthIfKnown(); if (lengthIfKnown.isPresent()) { return lengthIfKnown.get(); } Closer closer = Closer.create(); try { Reader reader = closer.register(openStream()); return countBySkipping(reader);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Jul 16 17:42:14 UTC 2025 - 25.7K bytes - Viewed (0)