Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 81 for MapEntry (0.31 sec)

  1. guava/src/com/google/common/collect/CompactHashMap.java

        return new Itr<Entry<K, V>>() {
          @Override
          Entry<K, V> getOutput(int entry) {
            return new MapEntry(entry);
          }
        };
      }
    
      final class MapEntry extends AbstractMapEntry<K, V> {
        @ParametricNullness private final K key;
    
        private int lastKnownIndex;
    
        MapEntry(int index) {
          this.key = key(index);
          this.lastKnownIndex = index;
        }
    
        @Override
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 39.6K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/testers/CollectionIteratorTester.java

    import static com.google.common.collect.testing.Helpers.assertEqualIgnoringOrder;
    import static com.google.common.collect.testing.Helpers.copyToList;
    import static com.google.common.collect.testing.Helpers.mapEntry;
    import static com.google.common.collect.testing.IteratorFeature.MODIFIABLE;
    import static com.google.common.collect.testing.IteratorFeature.UNMODIFIABLE;
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 6.1K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/ConcurrentHashMultiset.java

                  if (!mapEntries.hasNext()) {
                    return endOfData();
                  }
                  Map.Entry<E, AtomicInteger> mapEntry = mapEntries.next();
                  int count = mapEntry.getValue().get();
                  if (count != 0) {
                    return Multisets.immutableEntry(mapEntry.getKey(), count);
                  }
                }
              }
            };
    
        return new ForwardingIterator<Entry<E>>() {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Dec 08 22:42:14 UTC 2025
    - 22.3K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/LinkedHashMultimapTest.java

        multimap = SerializableTester.reserializeAndAssert(multimap);
        assertThat(multimap.keySet()).containsExactly("a", "b", "c").inOrder();
        assertThat(multimap.entries())
            .containsExactly(mapEntry("b", 2), mapEntry("a", 3), mapEntry("c", 4))
            .inOrder();
        // note that the keys and entries are in different orders
      }
    
      private void assertOrderingReadOnly(Multimap<String, Integer> multimap) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Oct 10 23:13:45 UTC 2025
    - 18.7K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/testers/MapReplaceAllTester.java

                });
        List<Entry<K, V>> expectedEntries = new ArrayList<>();
        for (Entry<K, V> entry : getSampleEntries()) {
          int index = keys().asList().indexOf(entry.getKey());
          expectedEntries.add(Helpers.mapEntry(entry.getKey(), values().asList().get(index + 1)));
        }
        expectContents(expectedEntries);
      }
    
      @MapFeature.Require(SUPPORTS_PUT)
      @CollectionFeature.Require(KNOWN_ORDER)
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Oct 31 14:51:04 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/ImmutableListMultimapTest.java

            .expectCollects(ImmutableListMultimap.of())
            .expectCollects(
                ImmutableListMultimap.of("a", 1, "b", 2, "a", 3, "c", 4),
                mapEntry("a", 1),
                mapEntry("b", 2),
                mapEntry("a", 3),
                mapEntry("c", 4));
      }
    
      public void testFlatteningToImmutableListMultimap() {
        Collector<String, ?, ImmutableListMultimap<Character, Character>> collector =
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Nov 17 22:50:48 UTC 2025
    - 25.9K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/collect/testing/AbstractMapTester.java

     * limitations under the License.
     */
    
    package com.google.common.collect.testing;
    
    import static com.google.common.collect.testing.Helpers.copyToList;
    import static com.google.common.collect.testing.Helpers.mapEntry;
    
    import com.google.common.annotations.GwtCompatible;
    import java.util.Collection;
    import java.util.Iterator;
    import java.util.List;
    import java.util.ListIterator;
    import java.util.Map;
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sat Jan 18 02:54:30 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/AbstractMapBasedMultimap.java

        }
    
        @Override
        @ParametricNullness
        public T next() {
          if (!valueIterator.hasNext()) {
            Entry<K, Collection<V>> mapEntry = keyIterator.next();
            key = mapEntry.getKey();
            collection = mapEntry.getValue();
            valueIterator = collection.iterator();
          }
          /*
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Nov 17 22:50:48 UTC 2025
    - 48.4K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/CompactHashMap.java

        return new Itr<Entry<K, V>>() {
          @Override
          Entry<K, V> getOutput(int entry) {
            return new MapEntry(entry);
          }
        };
      }
    
      final class MapEntry extends AbstractMapEntry<K, V> {
        @ParametricNullness private final K key;
    
        private int lastKnownIndex;
    
        MapEntry(int index) {
          this.key = key(index);
          this.lastKnownIndex = index;
        }
    
        @Override
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 35.7K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/Helpers.java

        return copyToSet(asList(elements));
      }
    
      // Would use Maps.immutableEntry
      public static <K extends @Nullable Object, V extends @Nullable Object> Entry<K, V> mapEntry(
          K key, V value) {
        return singletonMap(key, value).entrySet().iterator().next();
      }
    
      private static boolean isEmpty(Iterable<?> iterable) {
        return iterable instanceof Collection
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Oct 10 23:13:45 UTC 2025
    - 17.2K bytes
    - Viewed (0)
Back to top