- Sort Score
- Result 10 results
- Languages All
Results 711 - 720 of 746 for IsEmpty (0.04 sec)
-
android/guava-tests/test/com/google/common/collect/IteratorsTest.java
Iterator<String> cycle = Iterators.cycle(iterable); assertTrue(cycle.hasNext()); assertEquals("a", cycle.next()); assertTrue(cycle.hasNext()); cycle.remove(); assertTrue(iterable.elements.isEmpty()); assertFalse(cycle.hasNext()); } public void testCycleNoSuchElementException() { Iterable<String> iterable = Lists.newArrayList("a"); Iterator<String> cycle = Iterators.cycle(iterable);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 54.4K bytes - Viewed (0) -
compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/resolver/DefaultLegacyArtifactCollector.java
version = versionRange.matchVersion(versions); if (version == null) { if (versions.isEmpty()) { throw new OverConstrainedVersionException( "No versions are present in the repository for the artifact"Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Fri Jun 06 14:28:57 UTC 2025 - 36.5K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/Cookie.kt
if (pairEqualsSign == cookiePairEnd) return null val cookieName = setCookie.trimSubstring(endIndex = pairEqualsSign) if (cookieName.isEmpty() || cookieName.indexOfControlOrNonAscii() != -1) return null val cookieValue = setCookie.trimSubstring(pairEqualsSign + 1, cookiePairEnd) if (cookieValue.indexOfControlOrNonAscii() != -1) return null
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Mon May 05 16:01:00 UTC 2025 - 23.1K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/Striped.java
*/ public Iterable<L> bulkGet(Iterable<? extends Object> keys) { // Initially using the list to store the keys, then reusing it to store the respective L's List<Object> result = newArrayList(keys); if (result.isEmpty()) { return ImmutableList.of(); } int[] stripes = new int[result.size()]; for (int i = 0; i < result.size(); i++) { stripes[i] = indexFor(result.get(i)); } Arrays.sort(stripes);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 20.6K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Streams.java
} } OptionalState state = new OptionalState(); Deque<Spliterator<T>> splits = new ArrayDeque<>(); splits.addLast(stream.spliterator()); while (!splits.isEmpty()) { Spliterator<T> spliterator = splits.removeLast(); if (spliterator.getExactSizeIfKnown() == 0) { continue; // drop this split }Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 37K bytes - Viewed (0) -
android/guava/src/com/google/common/primitives/Ints.java
this.array = array; this.start = start; this.end = end; } @Override public int size() { return end - start; } @Override public boolean isEmpty() { return false; } @Override public Integer get(int index) { checkElementIndex(index, size()); return array[start + index]; } @Override /*Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 31.4K bytes - Viewed (0) -
okhttp/src/androidMain/baseline-prof.txt
HSPLkotlin/collections/EmptyList;-><clinit>()V HSPLkotlin/collections/EmptyList;-><init>()V HSPLkotlin/collections/EmptyList;->isEmpty()Z HSPLkotlin/collections/EmptyList;->iterator()Ljava/util/Iterator; HSPLkotlin/collections/EmptyMap;-><clinit>()V HSPLkotlin/collections/EmptyMap;-><init>()V HSPLkotlin/collections/EmptyMap;->isEmpty()Z HSPLkotlin/collections/EmptySet;-><clinit>()V HSPLkotlin/collections/EmptySet;-><init>()V
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Mon Dec 30 23:28:56 UTC 2024 - 127.9K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/Cache.kt
*/ private fun varyHeaders( requestHeaders: Headers, responseHeaders: Headers, ): Headers { val varyFields = responseHeaders.varyFields() if (varyFields.isEmpty()) return Headers.EMPTY val result = Headers.Builder() for (i in 0 until requestHeaders.size) { val fieldName = requestHeaders.name(i) if (fieldName in varyFields) {Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Aug 16 09:39:51 UTC 2025 - 26.9K bytes - Viewed (0) -
guava-testlib/src/com/google/common/testing/FreshValueGenerator.java
return pickInstance(Arrays.asList(instances), defaultValue); } private <T> T pickInstance(Collection<T> instances, T defaultValue) { if (instances.isEmpty()) { return defaultValue; } // generateInt() is 1-based. return Iterables.get(instances, (generateInt() - 1) % instances.size()); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 28.7K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/Http2Connection.kt
delta = peerInitialWindowSize - previousPeerSettings.initialWindowSize.toLong() streamsToNotify = when { delta == 0L || streams.isEmpty() -> null // No adjustment is necessary. else -> streams.values.toTypedArray() } peerSettings = newPeerSettings
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Jul 31 04:18:40 UTC 2025 - 31.8K bytes - Viewed (0)