- Sort Score
- Result 10 results
- Languages All
Results 671 - 680 of 1,023 for Collections (0.05 sec)
-
guava-tests/test/com/google/common/cache/PopulatedCachesTest.java
private void assertCollectionSize(Collection<?> collection, int size) { assertThat(collection.size()).isEqualTo(size); if (size > 0) { assertThat(collection.isEmpty()).isFalse(); } else { assertThat(collection.isEmpty()).isTrue(); } assertThat(Iterables.size(collection)).isEqualTo(size); assertThat(Iterators.size(collection.iterator())).isEqualTo(size); }
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Sep 30 22:03:28 UTC 2025 - 15.7K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/Tags.kt
import kotlin.reflect.KClass /** * An immutable collection of key-value pairs implemented as a singly-linked list. * * Build up a collection by starting with [EmptyTags] and repeatedly calling [plus]. Each such call * returns a new instance. * * This collection is optimized for safe concurrent access over a very small number of elements. *
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Fri Oct 24 11:37:46 UTC 2025 - 3.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/MultimapsFilterEntriesAsMapTest.java
return Multimaps.filterEntries(unfiltered, PREDICATE); } @Override protected Map<String, Collection<Integer>> makeEmptyMap() { Multimap<String, Integer> multimap = createMultimap(); return multimap.asMap(); } @Override protected Map<String, Collection<Integer>> makePopulatedMap() { Multimap<String, Integer> multimap = createMultimap(); populate(multimap);
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Wed Feb 12 03:49:18 UTC 2025 - 2.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/WrappingScheduledExecutorServiceTest.java
} @Override public <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> tasks) throws InterruptedException { throw new UnsupportedOperationException(); } @Override public <T> List<Future<T>> invokeAll( Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) throws InterruptedException {Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Jul 14 14:44:08 UTC 2025 - 7.4K bytes - Viewed (0) -
android/guava-testlib/test/com/google/common/collect/testing/OpenJdk6SetTests.java
return new OpenJdk6SetTests().allTests(); } @Override protected Collection<Method> suppressForTreeSetNatural() { return asList( getAddNullUnsupportedMethod(), getAddAllNullUnsupportedMethod(), getCreateWithNullUnsupportedMethod()); } @Override protected Collection<Method> suppressForCheckedSet() {
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sat Jan 25 16:19:30 UTC 2025 - 2K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionIsEmptyTester.java
@CollectionSize.Require(ZERO) public void testIsEmpty_yes() { assertTrue("isEmpty() should return true", collection.isEmpty()); } @CollectionSize.Require(absent = ZERO) public void testIsEmpty_no() { assertFalse("isEmpty() should return false", collection.isEmpty()); }
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Nov 14 23:40:07 UTC 2024 - 1.8K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/SetHashCodeTester.java
@CollectionFeature.Require(ALLOWS_NULL_VALUES) public void testHashCode_containingNull() { Collection<E> elements = getSampleElements(getNumElements() - 1); int expectedHashCode = 0; for (E element : elements) { expectedHashCode += (element == null) ? 0 : element.hashCode(); } elements.add(null); collection = getSubjectGenerator().create(elements.toArray()); assertEquals(
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 3.1K bytes - Viewed (0) -
src/main/java/org/codelibs/core/collection/SingleValueIterator.java
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, * either express or implied. See the License for the specific language * governing permissions and limitations under the License. */ package org.codelibs.core.collection; import java.util.Iterator; import java.util.NoSuchElementException; import org.codelibs.core.exception.ClUnsupportedOperationException; /** * An {@link Iterator} that returns a single value. *Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Thu Jun 19 09:12:22 UTC 2025 - 2.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/MultimapsCollectionTest.java
import java.util.Collection; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Map.Entry; import java.util.Set; import java.util.TreeSet; import junit.framework.Test; import junit.framework.TestCase; import junit.framework.TestSuite; import org.jspecify.annotations.NullUnmarked; /** * Run collection tests on wrappers from {@link Multimaps}. *Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Wed Sep 24 22:52:18 UTC 2025 - 28.4K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/multichannel/ChannelLoadBalancer.java
} } private ChannelInfo selectRoundRobin(Collection<ChannelInfo> channels) { List<ChannelInfo> list = new ArrayList<>(channels); int index = Math.abs(roundRobinCounter.getAndIncrement() % list.size()); return list.get(index); } private ChannelInfo selectLeastLoaded(Collection<ChannelInfo> channels) { ChannelInfo leastLoadedChannel = null;Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 8.2K bytes - Viewed (0)