- Sort Score
- Result 10 results
- Languages All
Results 621 - 630 of 746 for isEmpty (0.16 sec)
-
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/-UtilJvm.kt
/** Returns an immutable copy of this. */ @Suppress("UNCHECKED_CAST") internal fun <T> List<T>.toImmutableList(): List<T> = when { this.isEmpty() -> emptyList() this.size == 1 -> Collections.singletonList(this[0]) // Collection.toArray returns Object[] (covariant). // It is faster than creating real T[] via reflection (Arrays.copyOf).Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Jul 31 04:18:40 UTC 2025 - 10.2K bytes - Viewed (1) -
src/test/java/org/codelibs/fess/suggest/settings/SuggestSettingsBuilderTest.java
assertEquals("fess_suggest", testBuilder.settingsIndexName); assertNotNull(testBuilder.timeoutSettings); assertNotNull(testBuilder.initialSettings); assertTrue(testBuilder.initialSettings.isEmpty()); } @Test public void testSetSettingsIndexName() { // Test setting index name with lowercase conversion SuggestSettingsBuilder result = builder.setSettingsIndexName("TEST_INDEX");
Registered: Fri Sep 19 09:08:11 UTC 2025 - Last Modified: Mon Sep 01 13:33:03 UTC 2025 - 14.4K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/LinkedListMultimap.java
nextIndex++; current = null; } } // Query Operations @Override public int size() { return size; } @Override public boolean isEmpty() { return head == null; } @Override public boolean containsKey(@Nullable Object key) { return keyToKeyList.containsKey(key); } @OverrideRegistered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 26.6K bytes - Viewed (0) -
src/main/java/jcifs/smb/NtlmPasswordAuthenticator.java
AuthenticationType t = AuthenticationType.USER; if ("guest".equalsIgnoreCase(this.username)) { t = AuthenticationType.GUEST; } else if ((getUserDomain() == null || getUserDomain().isEmpty()) && getUsername().isEmpty() && (this.password == null || this.password.length == 0)) { t = AuthenticationType.NULL; } return t; } @SuppressWarnings("unchecked")Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 30.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/dfs/DfsReferralDataInternalTest.java
// Should not throw assertDoesNotThrow(() -> concreteImplementation.replaceCache()); // Map should remain empty assertTrue(cacheMap.isEmpty()); } @Test @DisplayName("Should handle replace without map") void testReplaceCacheWithoutMap() { concreteImplementation.setKey("key");Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 28.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/QueuesTest.java
List<Object> buf = new ArrayList<>(); int elements = Queues.drain(q, buf, -1, MAX_VALUE, NANOSECONDS); assertEquals(0, elements); assertThat(buf).isEmpty(); // Free the producer thread, and give subsequent tests a clean slate. q.take(); } public void testDrain_throws() throws Exception { for (BlockingQueue<Object> q : blockingQueues()) {Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 12.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb2TransformHeaderTest.java
assertNotNull(stringRep); assertTrue(stringRep.contains("Smb2TransformHeader")); // toString() implementation may vary, just check it's not null and not empty assertFalse(stringRep.isEmpty()); } @Test @DisplayName("Should generate correct associated data for AEAD") void testGetAssociatedData() { // Given transformHeader.setNonce(testNonce);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.7K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedPriorityBlockingQueue.java
final Monitor monitor = new Monitor(true); private final Monitor.Guard notEmpty = new Monitor.Guard(monitor) { @Override public boolean isSatisfied() { return !q.isEmpty(); } }; /** * Creates a {@code MonitorBasedPriorityBlockingQueue} with the default initial capacity (11) that * orders its elements according to their {@linkplain Comparable natural ordering}.
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 18.9K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/GcFinalization.java
* {@snippet : * final WeakHashMap<Object, Object> map = new WeakHashMap<>(); * map.put(new Object(), Boolean.TRUE); * GcFinalization.awaitDone(new FinalizationPredicate() { * public boolean isDone() { * return map.isEmpty(); * } * }); * } * * <p>Even if your non-test code does not use finalization, you can use this class to test for * leaks, by ensuring that objects are no longer strongly referenced: * * {@snippet :Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Mar 17 20:26:29 UTC 2025 - 11.5K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/ldap/LdapUserTest.java
// Test with empty environment Hashtable<String, String> emptyEnv = new Hashtable<>(); LdapUser user = new LdapUser(emptyEnv, "user"); assertTrue(user.getEnvironment().isEmpty()); } public void test_getPermissions_withoutLdapConfig() { // Test when baseDn or accountFilter is blank ComponentUtil.setFessConfig(new FessConfig.SimpleImpl() { @OverrideRegistered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 16.6K bytes - Viewed (0)