- Sort Score
- Num 10 results
- Language All
Results 541 - 550 of 1,094 for Entry (0.08 seconds)
-
guava/src/com/google/common/collect/ImmutableSortedMultiset.java
Comparator<? super E> comparator, Collection<Entry<E>> entries) { if (entries.isEmpty()) { return emptyMultiset(comparator); } ImmutableList.Builder<E> elementsBuilder = new ImmutableList.Builder<>(entries.size()); long[] cumulativeCounts = new long[entries.size() + 1]; int i = 0; for (Entry<E> entry : entries) { elementsBuilder.add(entry.getElement());
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Sep 22 21:07:18 GMT 2025 - 29.5K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/AbstractMultisetSetCountTester.java
assertEquals( "multiset.count() should return the value passed to setCount()", count, getMultiset().count(element)); int size = 0; for (Multiset.Entry<E> entry : getMultiset().entrySet()) { size += entry.getCount(); } assertEquals( "multiset.size() should be the sum of the counts of all entries", size, getMultiset().size()); }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 13K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/ListenerCallQueueTest.java
} private static <T> ImmutableMultiset<T> multiset(Map<T, Integer> counts) { ImmutableMultiset.Builder<T> builder = ImmutableMultiset.builder(); for (Entry<T, Integer> entry : counts.entrySet()) { builder.addCopies(entry.getKey(), entry.getValue()); } return builder.build(); } private ListenerCallQueue.Event<Object> countDownEvent(CountDownLatch latch) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 8.4K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/ListenerCallQueueTest.java
} private static <T> ImmutableMultiset<T> multiset(Map<T, Integer> counts) { ImmutableMultiset.Builder<T> builder = ImmutableMultiset.builder(); for (Entry<T, Integer> entry : counts.entrySet()) { builder.addCopies(entry.getKey(), entry.getValue()); } return builder.build(); } private ListenerCallQueue.Event<Object> countDownEvent(CountDownLatch latch) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 8.4K bytes - Click Count (0) -
guava-tests/test/com/google/common/io/ByteSourceTester.java
TestSuite suite = new TestSuite(name); for (Entry<String, String> entry : TEST_STRINGS.entrySet()) { if (testAsCharSource) { suite.addTest(suiteForString(factory, entry.getValue(), name, entry.getKey())); } else { suite.addTest( suiteForBytes(factory, entry.getValue().getBytes(UTF_8), name, entry.getKey(), true)); } } return suite; }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 19 18:53:45 GMT 2026 - 8.6K bytes - Click Count (0) -
build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/testfixtures/TestFixturesPlugin.java
Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Wed Sep 29 15:07:50 GMT 2021 - 10.7K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/AbstractSetMultimap.java
* {@link Set}, instead of the {@link Collection} specified in the {@link Multimap} interface. */ @Override public Set<Entry<K, V>> entries() { return (Set<Entry<K, V>>) super.entries(); } /** * {@inheritDoc} * * <p>Because a {@code SetMultimap} has unique values for a given key, this method returns aCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 20 13:05:10 GMT 2025 - 4.9K bytes - Click Count (0) -
guava/src/com/google/common/collect/AbstractSetMultimap.java
* {@link Set}, instead of the {@link Collection} specified in the {@link Multimap} interface. */ @Override public Set<Entry<K, V>> entries() { return (Set<Entry<K, V>>) super.entries(); } /** * {@inheritDoc} * * <p>Because a {@code SetMultimap} has unique values for a given key, this method returns aCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 20 13:05:10 GMT 2025 - 4.9K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/ForwardingMultiset.java
* implementation. * * @since 7.0 */ protected int standardCount(@Nullable Object object) { for (Entry<?> entry : this.entrySet()) { if (Objects.equals(entry.getElement(), object)) { return entry.getCount(); } } return 0; } /** * A sensible definition of {@link #add(Object)} in terms of {@link #add(Object, int)}. If you
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Jul 08 18:32:10 GMT 2025 - 10.3K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/BiMapTestSuiteBuilder.java
import com.google.common.collect.testing.testers.SetCreationTester; import java.util.ArrayList; import java.util.HashSet; import java.util.List; import java.util.Map.Entry; import java.util.Set; import junit.framework.TestSuite; /** * Creates, based on your criteria, a JUnit test suite that exhaustively tests a {@code BiMap} * implementation. * * @author Louis Wasserman */Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Oct 30 16:15:19 GMT 2024 - 6.8K bytes - Click Count (0)