- Sort Score
- Num 10 results
- Language All
Results 501 - 510 of 1,163 for useEmpty (0.05 seconds)
-
okhttp/src/commonJvmAndroid/kotlin/okhttp3/Dispatcher.kt
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Oct 07 14:16:22 GMT 2025 - 9.9K bytes - Click Count (0) -
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableBiMap.java
public ImmutableBiMap<K, V> build() { return buildOrThrow(); } @Override public ImmutableBiMap<K, V> buildOrThrow() { ImmutableMap<K, V> map = super.buildOrThrow(); if (map.isEmpty()) { return of(); } return new RegularImmutableBiMap<K, V>(super.buildOrThrow()); } @Override ImmutableBiMap<K, V> buildJdkBacked() { return build(); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Aug 06 18:32:41 GMT 2025 - 7.1K bytes - Click Count (0) -
compat/maven-compat/src/test/java/org/apache/maven/repository/TestRepositorySystem.java
@Override public Artifact createPluginArtifact(Plugin plugin) { VersionRange versionRange; try { String version = plugin.getVersion(); if (version == null || version.isEmpty()) { version = "RELEASE"; } versionRange = VersionRange.createFromVersionSpec(version); } catch (InvalidVersionSpecificationException e) { return null;Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Jan 10 08:42:00 GMT 2025 - 12K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/IterablesTest.java
} public void testIsEmpty() { Iterable<String> emptyList = emptyList(); assertTrue(Iterables.isEmpty(emptyList)); Iterable<String> singletonList = singletonList("foo"); assertFalse(Iterables.isEmpty(singletonList)); } public void testSkip_simple() { Collection<String> set = ImmutableSet.of("a", "b", "c", "d", "e");
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 47.5K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/base/OptionalTest.java
assertEquals(expected, Optional.of("a").asSet()); } public void testAsSet_absent() { assertTrue("Returned set should be empty", Optional.absent().asSet().isEmpty()); } public void testAsSet_presentIsImmutable() { Set<String> presentAsSet = Optional.of("a").asSet(); assertThrows(UnsupportedOperationException.class, () -> presentAsSet.add("b")); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 15:59:55 GMT 2026 - 10.6K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/util/RenderDataUtil.java
return; } if (value instanceof Entity) { data.register(key, BeanUtil.copyBeanToNewMap(value)); } else { if (value instanceof final Collection<?> coll && !coll.isEmpty()) { // care performance for List that the most frequent pattern final Object first = coll instanceof List<?> ? ((List<?>) coll).get(0) : coll.iterator().next();Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Jul 17 08:28:31 GMT 2025 - 2.6K bytes - Click Count (0) -
build-conventions/src/main/java/org/elasticsearch/gradle/internal/checkstyle/SnippetLengthCheck.java
Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Thu Jun 10 23:06:44 GMT 2021 - 3.1K bytes - Click Count (0) -
compat/maven-compat/src/main/java/org/apache/maven/project/artifact/MavenMetadataSource.java
List<ArtifactRepository> requestRepositories, List<ArtifactRepository> pomRepositories) { List<ArtifactRepository> repositories = requestRepositories; if (pomRepositories != null && !pomRepositories.isEmpty()) { Map<String, ArtifactRepository> repos = new LinkedHashMap<>(); for (ArtifactRepository repo : requestRepositories) { if (!repos.containsKey(repo.getId())) {
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Thu Sep 25 12:03:50 GMT 2025 - 30.4K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/entity/FacetQueryViewTest.java
assertNotNull(queryMap); assertTrue(queryMap instanceof LinkedHashMap); assertTrue(queryMap.isEmpty()); } @Test public void test_addQuery() { assertTrue(facetQueryView.getQueryMap().isEmpty()); facetQueryView.addQuery("key1", "query1"); assertEquals(1, facetQueryView.getQueryMap().size());
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Wed Jan 14 14:29:07 GMT 2026 - 17.9K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/google/UnmodifiableCollectionTests.java
multimap.asMap().entrySet(), immutableEntry(sampleKey, sampleValueAsCollection)); // Test #values() assertMultimapRemainsUnmodified(multimap, originalEntries); if (!multimap.isEmpty()) { Collection<V> values = multimap.asMap().entrySet().iterator().next().getValue(); assertCollectionIsUnmodifiable(values, sampleValue); } // Test #entries()
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Aug 10 19:54:19 GMT 2025 - 14.9K bytes - Click Count (0)