- Sort Score
- Num 10 results
- Language All
Results 281 - 290 of 996 for useEmpty (0.05 seconds)
-
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 Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 20.7K 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 Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Mar 17 20:26:29 GMT 2025 - 16.6K bytes - Click Count (0) -
compat/maven-artifact/src/main/java/org/apache/maven/artifact/versioning/ComparableVersion.java
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Wed Jul 23 17:27:08 GMT 2025 - 26.4K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/concurrent/BuildPlanExecutor.java
} return plan; } else if (phase != null && !phase.isEmpty()) { String forkedLifecycle = mojoDescriptor.getExecuteLifecycle(); Lifecycle lifecycle; if (forkedLifecycle != null && !forkedLifecycle.isEmpty()) { org.apache.maven.api.plugin.descriptor.lifecycle.Lifecycle lifecycleOverlay; try {Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Thu Oct 16 06:12:36 GMT 2025 - 55.1K bytes - Click Count (0) -
src/test/java/jcifs/internal/NotifyResponseTest.java
List<FileNotifyInformation> notifications = response.getNotifyInformation(); assertNotNull(notifications); assertTrue(notifications.isEmpty()); assertEquals(0, notifications.size()); } @Test @DisplayName("Test NotifyResponse interface with single notification") void testNotifyResponseWithSingleNotification() {Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 21.2K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/DispatcherTest.kt
.containsExactlyInAnyOrder(a1, a2) assertThat(dispatcher.queuedCalls()).isEmpty() // Cancel some calls. That doesn't impact running or queued. a2.cancel() a3.cancel() assertThat(dispatcher.runningCalls()) .containsExactlyInAnyOrder(a1, a2) assertThat(dispatcher.queuedCalls()).isEmpty() // Let the calls finish. waiting.countDown() t1.join() t2.join()
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Tue Nov 04 19:13:52 GMT 2025 - 15.8K bytes - Click Count (0) -
src/main/java/org/codelibs/core/message/MessageFormatter.java
* either express or implied. See the License for the specific language * governing permissions and limitations under the License. */ package org.codelibs.core.message; import static org.codelibs.core.lang.StringUtil.isEmpty; import java.text.MessageFormat; import java.util.ResourceBundle; import org.codelibs.core.io.ResourceBundleUtil; import org.codelibs.core.misc.DisposableUtil; import org.codelibs.core.misc.LocaleUtil; /**
Created: Sat Dec 20 08:55:33 GMT 2025 - Last Modified: Thu Jul 31 08:16:49 GMT 2025 - 5.4K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/LockHeldAssertingSet.java
@Override public boolean containsAll(Collection<?> c) { assertTrue(Thread.holdsLock(mutex)); return super.containsAll(c); } @Override public boolean isEmpty() { assertTrue(Thread.holdsLock(mutex)); return super.isEmpty(); } /* * We don't assert that the lock is held during calls to iterator(), stream(), and spliterator:
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Feb 13 17:34:21 GMT 2025 - 4.3K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/SynchronizedTableTest.java
} @Override public int size() { assertTrue(Thread.holdsLock(mutex)); return delegate.size(); } @Override public boolean isEmpty() { assertTrue(Thread.holdsLock(mutex)); return delegate.isEmpty(); } @Override public boolean containsValue(@Nullable Object value) { assertTrue(Thread.holdsLock(mutex)); return delegate.containsValue(value);Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Wed Jul 16 17:42:14 GMT 2025 - 4.7K bytes - Click Count (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/props/MavenProperties.java
*/ private int checkHeaderComment(List<String> commentLines) { if (getHeader() == null && layout.isEmpty()) { // This is the first comment. Search for blank lines. int index = commentLines.size() - 1; while (index >= 0 && !commentLines.get(index).isEmpty()) { index--; } setHeader(new ArrayList<String>(commentLines.subList(0, index + 1)));Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Thu Oct 16 09:03:48 GMT 2025 - 38.5K bytes - Click Count (0)