- Sort Score
- Num 10 results
- Language All
Results 671 - 680 of 738 for isEmpty (0.45 seconds)
-
guava/src/com/google/common/collect/FluentIterable.java
// TODO(kevinb): Support a concurrently modified collection? Iterable<E> iterable = getDelegate(); if (iterable instanceof List) { List<E> list = (List<E>) iterable; if (list.isEmpty()) { return Optional.absent(); } return Optional.of(list.get(list.size() - 1)); } Iterator<E> iterator = iterable.iterator(); if (!iterator.hasNext()) {Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Sep 22 18:35:44 GMT 2025 - 34.7K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/RealCall.kt
val calls = connection.calls val index = calls.indexOfFirst { it.get() == this@RealCall } check(index != -1) calls.removeAt(index) this.connection = null if (calls.isEmpty()) { connection.idleAtNs = System.nanoTime() if (connectionPool.connectionBecameIdle(connection)) { return connection.socket() } } return null }Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Nov 05 18:28:35 GMT 2025 - 19.7K bytes - Click Count (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/PluginUpgradeStrategy.java
Set<String> pluginsForThisPom = pluginsNeedingManagement.get(pomPath); if (pluginsForThisPom != null && !pluginsForThisPom.isEmpty()) { hasUpgrades |= addPluginManagementForEffectivePlugins(context, pomDocument, pluginsForThisPom); context.detail("Added plugin management to " + pomPath + " (target parent for "
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Tue Nov 18 18:03:26 GMT 2025 - 37K bytes - Click Count (0) -
guava-tests/test/com/google/common/graph/ValueGraphTest.java
} @Test public void edgeValue_directed_backwards() { graph = ValueGraphBuilder.directed().build(); graph.putEdgeValue(1, 2, "A"); assertThat(graph.edgeValue(EndpointPair.ordered(2, 1))).isEmpty(); } @Test public void edgeValue_directed_mismatch() { graph = ValueGraphBuilder.directed().build(); graph.putEdgeValue(1, 2, "A"); IllegalArgumentException e = assertThrows(
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Oct 07 15:57:03 GMT 2025 - 20.7K bytes - Click Count (0) -
compat/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/reflection/MethodMap.java
} private static Method getMostSpecific(List<Method> methods, Class<?>... classes) throws AmbiguousException { LinkedList<Method> applicables = getApplicables(methods, classes); if (applicables.isEmpty()) { return null; } if (applicables.size() == 1) { return applicables.getFirst(); }Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Tue Feb 25 08:27:34 GMT 2025 - 14.2K bytes - Click Count (0) -
guava/src/com/google/common/collect/Table.java
*/ @Nullable V get( @CompatibleWith("R") @Nullable Object rowKey, @CompatibleWith("C") @Nullable Object columnKey); /** Returns {@code true} if the table contains no mappings. */ boolean isEmpty(); /** Returns the number of row key / column key / value mappings in the table. */ int size(); /** * Compares the specified object with this table for equality. Two tables are equal when their
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Jul 08 18:32:10 GMT 2025 - 10.5K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/IteratorsTest.java
public void testToArrayEmpty() { Iterator<String> iterator = Collections.<String>emptyList().iterator(); String[] array = Iterators.toArray(iterator, String.class); assertThat(array).isEmpty(); } @GwtIncompatible // Iterators.toArray(Iterator, Class) public void testToArraySingleton() { Iterator<String> iterator = singletonList("a").iterator();
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Oct 28 18:44:53 GMT 2025 - 56.7K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/Multimaps.java
} @Override public Collection<V2> get(@ParametricNullness K key) { return transform(key, fromMultimap.get(key)); } @Override public boolean isEmpty() { return fromMultimap.isEmpty(); } @Override Set<K> createKeySet() { return fromMultimap.keySet(); } @Override Multiset<K> createKeys() {Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Sep 22 18:35:44 GMT 2025 - 86.5K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/Http2Stream.kt
* all other requests. */ @Throws(IOException::class) fun takeHeaders(callerIsIdle: Boolean = false): Headers { withLock { while (headersQueue.isEmpty() && errorCode == null) { val doReadTimeout = callerIsIdle || doReadTimeout() if (doReadTimeout) { readTimeout.enter() } try { waitForIo() } finally {
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Mon Jul 07 18:57:05 GMT 2025 - 22.4K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/ImmutableListTest.java
ImmutableList<String> result = builder.build(); /* * Maybe it rejects all elements, or maybe it adds "a" before failing. * Either way is fine with us. */ if (result.isEmpty()) { return; } assertTrue(ImmutableList.of("a").equals(result)); assertEquals(1, result.size()); } public void testBuilderAddCollectionHandlesNulls() {
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 24.2K bytes - Click Count (0)