Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for MapEntry (0.24 sec)

  1. android/guava-tests/test/com/google/common/collect/TreeRangeMapTest.java

                        return new SampleElements<>(
                            mapEntry(Range.singleton(0), "banana"),
                            mapEntry(Range.closedOpen(3, 5), "frisbee"),
                            mapEntry(Range.atMost(-1), "fruitcake"),
                            mapEntry(Range.open(10, 15), "elephant"),
                            mapEntry(Range.closed(20, 22), "umbrella"));
                      }
    
                      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sun Oct 06 13:04:03 UTC 2024
    - 29.9K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/MultimapsCollectionTest.java

        }
    
        @Override
        public SampleElements<Entry<String, String>> samples() {
          return new SampleElements<>(
              mapEntry("one", "january"),
              mapEntry("two", "february"),
              mapEntry("three", "march"),
              mapEntry("four", "april"),
              mapEntry("five", "may"));
        }
    
        @Override
        public M create(Object... elements) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 28.7K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapTestSuiteBuilder.java

          return new SampleElements<>(
              mapEntry(sampleKeys.e0(), createCollection(sampleValues.e0())),
              mapEntry(sampleKeys.e1(), createCollection(sampleValues.e1())),
              mapEntry(sampleKeys.e2(), createCollection(sampleValues.e2())),
              mapEntry(sampleKeys.e3(), createCollection(sampleValues.e3())),
              mapEntry(sampleKeys.e4(), createCollection(sampleValues.e4())));
        }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 26.8K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/TreeMultimapNaturalTest.java

                        return new SampleElements<>(
                            mapEntry("a", (Collection<String>) ImmutableSortedSet.of("alex")),
                            mapEntry("b", (Collection<String>) ImmutableSortedSet.of("bob", "bagel")),
                            mapEntry("c", (Collection<String>) ImmutableSortedSet.of("carl", "carol")),
                            mapEntry("d", (Collection<String>) ImmutableSortedSet.of("david", "dead")),
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java

        } catch (UnsupportedOperationException e) {
          return;
        }
    
        map.put(null, unmappedValue);
        Entry<@Nullable K, V> entry = mapEntry(null, unmappedValue);
        assertTrue(entrySet.contains(entry));
        Entry<@Nullable K, @Nullable V> nonEntry = mapEntry(null, null);
        assertFalse(entrySet.contains(nonEntry));
      }
    
      public void testEntrySetContainsEntryNullKeyMissing() {
        Map<K, V> map;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 43.8K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/AbstractMapBasedMultiset.java

            final Map.Entry<E, Count> mapEntry = backingEntries.next();
            toRemove = mapEntry;
            return new Multisets.AbstractEntry<E>() {
              @Override
              @ParametricNullness
              public E getElement() {
                return mapEntry.getKey();
              }
    
              @Override
              public int getCount() {
                Count count = mapEntry.getValue();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/MultimapsCollectionTest.java

        }
    
        @Override
        public SampleElements<Entry<String, String>> samples() {
          return new SampleElements<>(
              mapEntry("one", "january"),
              mapEntry("two", "february"),
              mapEntry("three", "march"),
              mapEntry("four", "april"),
              mapEntry("five", "may"));
        }
    
        @Override
        public M create(Object... elements) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 28.9K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/ImmutableMapTest.java

        CollectorTester.of(collector, equivalence)
            .expectCollects(
                ImmutableMap.of("one", 1, "two", 4, "three", 3),
                mapEntry("one", 1),
                mapEntry("two", 2),
                mapEntry("three", 3),
                mapEntry("two", 2));
      }
    
      // Non-creation tests
    
      public void testNullGet() {
        ImmutableMap<String, Integer> map = ImmutableMap.of("one", 1);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 41.1K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/ImmutableBiMapTest.java

        CollectorTester.of(collector, equivalence)
            .expectCollects(
                ImmutableBiMap.of("one", 1, "two", 2, "three", 3),
                mapEntry("one", 1),
                mapEntry("two", 2),
                mapEntry("three", 3));
      }
    
      public void testToImmutableBiMap_exceptionOnDuplicateKey() {
        Collector<Entry<String, Integer>, ?, ImmutableBiMap<String, Integer>> collector =
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java

        } catch (UnsupportedOperationException e) {
          return;
        }
    
        map.put(null, unmappedValue);
        Entry<@Nullable K, V> entry = mapEntry(null, unmappedValue);
        assertTrue(entrySet.contains(entry));
        Entry<@Nullable K, @Nullable V> nonEntry = mapEntry(null, null);
        assertFalse(entrySet.contains(nonEntry));
      }
    
      public void testEntrySetContainsEntryNullKeyMissing() {
        Map<K, V> map;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 43.8K bytes
    - Viewed (0)
Back to top