- Sort Score
- Num 10 results
- Language All
Results 281 - 290 of 1,163 for useEmpty (0.06 seconds)
-
src/test/java/org/codelibs/fess/helper/LogNotificationHelperTest.java
public void test_drainAll_empty() { LogNotificationHelper helper = new LogNotificationHelper(); List<LogNotificationEvent> events = helper.drainAll(); assertNotNull(events); assertTrue(events.isEmpty()); } @Test public void test_drainAll_clears() { LogNotificationHelper helper = new LogNotificationHelper(); helper.offer(new LogNotificationEvent(1000L, "ERROR", "org.test", "msg", null));
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Mar 26 02:24:08 GMT 2026 - 6.3K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/RegularImmutableSortedMultiset.java
return Multisets.immutableEntry(elementSet.asList().get(index), getCount(index)); } @Override public @Nullable Entry<E> firstEntry() { return isEmpty() ? null : getEntry(0); } @Override public @Nullable Entry<E> lastEntry() { return isEmpty() ? null : getEntry(length - 1); } @Override public int count(@Nullable Object element) { int index = elementSet.indexOf(element);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Dec 28 01:26:26 GMT 2024 - 4.3K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/ImmutableMultisetTest.java
.createTestSuite()); return suite; } public void testCreation_noArgs() { Multiset<String> multiset = ImmutableMultiset.of(); assertTrue(multiset.isEmpty()); } public void testCreation_oneElement() { Multiset<String> multiset = ImmutableMultiset.of("a"); assertEquals(HashMultiset.create(asList("a")), multiset); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 20.8K bytes - Click Count (0) -
guava/src/com/google/common/base/MoreObjects.java
} private static boolean isEmpty(Object value) { // Put types estimated to be the most frequent first. if (value instanceof CharSequence) { return ((CharSequence) value).length() == 0; } else if (value instanceof Collection) { return ((Collection<?>) value).isEmpty(); } else if (value instanceof Map) { return ((Map<?, ?>) value).isEmpty();Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Feb 05 17:38:41 GMT 2026 - 16.7K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/chat/ChatClientTest.java
assertTrue(result.isEmpty()); assertFalse(chatClient.wasSearchDocumentsCalled()); } @Test public void test_searchWithQuery_blank() { final List<Map<String, Object>> result = chatClient.testSearchWithQuery(" "); assertTrue(result.isEmpty()); assertFalse(chatClient.wasSearchDocumentsCalled()); } @Test
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sat Mar 21 06:04:58 GMT 2026 - 40.6K bytes - Click Count (0) -
build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/rules/MethodsRemovedInInternalSuperClassRule.groovy
Set<CtMethod> newMethods = collectAllPublicApiMethods(newClass.superclass) oldMethods.removeAll(newMethods) if (oldMethods.isEmpty()) { return null } List<String> changes = filterChangesToReport(oldClass, oldMethods) if (changes.isEmpty()) { return null } return acceptOrReject(c, changes, Violation.error(c, " methods removed in internal super class"))
Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Wed Dec 24 14:15:15 GMT 2025 - 4.2K bytes - Click Count (0) -
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ForwardingImmutableMap.java
} } this.delegate = Collections.unmodifiableMap(delegate); } @Override boolean isPartialView() { return false; } @Override public final boolean isEmpty() { return delegate.isEmpty(); } @Override public final boolean containsKey(@Nullable Object key) { return Maps.safeContainsKey(delegate, key); } @OverrideCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Aug 06 18:32:41 GMT 2025 - 4K bytes - Click Count (0) -
src/main/java/org/codelibs/core/convert/ShortConversionUtil.java
Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Thu Jul 31 08:16:49 GMT 2025 - 3.8K bytes - Click Count (0) -
compat/maven-model-builder/src/main/java/org/apache/maven/model/management/DefaultPluginManagementInjector.java
} } } private void mergePluginContainerPlugins(PluginContainer target, PluginContainer source) { List<Plugin> src = source.getPlugins(); if (!src.isEmpty()) { List<Plugin> tgt = target.getPlugins(); Map<Object, Plugin> managedPlugins = new LinkedHashMap<>(src.size() * 2); Map<Object, Object> context = Collections.emptyMap();Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Tue Feb 25 08:27:34 GMT 2025 - 4.5K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/primitives/ImmutableIntArrayTest.java
} public void testIsEmpty() { assertThat(ImmutableIntArray.of().isEmpty()).isTrue(); assertThat(ImmutableIntArray.of(0).isEmpty()).isFalse(); assertThat(ImmutableIntArray.of(0, 1, 3).isEmpty()).isFalse(); assertThat(ImmutableIntArray.of(0, 1, 3).subArray(1, 1).isEmpty()).isTrue(); assertThat(ImmutableIntArray.of(0, 1, 3).subArray(1, 2).isEmpty()).isFalse(); } public void testGet_good() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 20.2K bytes - Click Count (0)