- Sort Score
- Num 10 results
- Language All
Results 291 - 300 of 1,163 for useEmpty (0.07 seconds)
-
guava-testlib/src/com/google/common/collect/testing/Helpers.java
return singletonMap(key, value).entrySet().iterator().next(); } private static boolean isEmpty(Iterable<?> iterable) { return iterable instanceof Collection ? ((Collection<?>) iterable).isEmpty() : !iterable.iterator().hasNext(); } public static void assertEmpty(Iterable<?> iterable) { if (!isEmpty(iterable)) { fail("Not true that " + iterable + " is empty"); } }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 23 21:06:42 GMT 2026 - 17.2K bytes - Click Count (0) -
guava/src/com/google/common/collect/ArrayTable.java
} /** * Returns {@code true} if {@code rowKeyList().size == 0} or {@code columnKeyList().size() == 0}. */ @Override public boolean isEmpty() { return rowList.isEmpty() || columnList.isEmpty(); } /** * {@inheritDoc} * * @throws IllegalArgumentException if {@code rowKey} is not in {@link #rowKeySet()} or {@codeCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Mar 08 16:16:42 GMT 2026 - 26.9K bytes - Click Count (0) -
compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/LegacyRepositorySystem.java
if (repo != null) { String id = repo.getId(); if (id == null || id.isEmpty()) { throw new InvalidRepositoryException("Repository identifier missing", ""); } String url = repo.getUrl(); if (url == null || url.isEmpty()) { throw new InvalidRepositoryException("URL missing for repository " + id, id); }
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Jun 06 14:28:57 GMT 2025 - 31.2K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/cache/PopulatedCachesTest.java
return Maps.immutableEntry(key, value); } private void assertMapSize(Map<?, ?> map, int size) { assertThat(map).hasSize(size); if (size > 0) { assertThat(map.isEmpty()).isFalse(); } else { assertThat(map.isEmpty()).isTrue(); } assertCollectionSize(map.keySet(), size); assertCollectionSize(map.entrySet(), size); assertCollectionSize(map.values(), size); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Mar 18 18:06:14 GMT 2026 - 15.4K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java
Collection<V> valueCollection = map.values(); Set<Entry<K, V>> entrySet = map.entrySet(); assertEquals(map.size() == 0, map.isEmpty()); assertEquals(map.size(), keySet.size()); assertEquals(keySet.size() == 0, keySet.isEmpty()); assertEquals(!keySet.isEmpty(), keySet.iterator().hasNext()); int expectedKeySetHash = 0; for (K key : keySet) { V value = map.get(key);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Aug 11 19:31:30 GMT 2025 - 43.9K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/EventListenerTest.kt
assertThat(a.eventSequence).isEmpty() assertThat(b.takeEvent()).isInstanceOf<CallStart>() assertThat(b.eventSequence).isEmpty() assertThat(c.takeEvent()).isInstanceOf<CallStart>() assertThat(c.eventSequence).isEmpty() assertThat(d.takeEvent()).isInstanceOf<CallStart>() assertThat(d.eventSequence).isEmpty() }
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Feb 03 22:17:59 GMT 2026 - 70.7K bytes - Click Count (0) -
compat/maven-compat/src/main/java/org/apache/maven/artifact/repository/LegacyLocalRepositoryManager.java
} @Override public boolean storedInArtifactVersionDirectory() { return !metadata.getVersion().isEmpty(); } @Override public boolean storedInGroupDirectory() { return metadata.getArtifactId().isEmpty(); } @Override public String getGroupId() { return nullify(metadata.getGroupId()); }Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Jun 06 14:28:57 GMT 2025 - 13.1K bytes - Click Count (0) -
.teamcity/scripts/CheckWrapper.java
Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Tue Jan 20 03:53:25 GMT 2026 - 6.4K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/ArrayListMultimapTest.java
List<Integer> sublist = list.subList(0, 5); assertThat(sublist).containsExactly(1, 2, 3, 4, 5).inOrder(); sublist.clear(); assertTrue(sublist.isEmpty()); multimap.put("foo", 6); assertThrows(ConcurrentModificationException.class, () -> sublist.isEmpty()); } public void testCreateFromMultimap() { Multimap<String, Integer> multimap = create(); multimap.put("foo", 1);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 6.6K bytes - Click Count (0) -
compat/maven-compat/src/test/java/org/apache/maven/project/inheritance/t09/ProjectInheritanceTest.java
assertEquals(pom0Basedir, project1.getParent().getBasedir()); Map map = project1.getArtifactMap(); assertNotNull(map, "No artifacts"); assertFalse(map.isEmpty(), "No Artifacts"); assertTrue(map.size() == 2, "Set size should be 2, is " + map.size()); assertTrue(map.containsKey("maven-test:t09-a"), "maven-test:t09-a is not in the project");
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Wed Jul 23 17:27:08 GMT 2025 - 5K bytes - Click Count (0)