Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 361 for entrySet (0.07 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapKeysTester.java

        assertEquals(2, keys.count(k0()));
        assertEquals(1, keys.count(k1()));
        assertEquals(3, keys.size());
        assertContainsAllOf(keys, k0(), k1());
        assertContainsAllOf(
            keys.entrySet(), Multisets.immutableEntry(k0(), 2), Multisets.immutableEntry(k1(), 1));
      }
    
      @MapFeature.Require(ALLOWS_NULL_KEY_QUERIES)
      public void testKeysCountAbsentNullKey() {
        assertEquals(0, multimap().keys().count(null));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/testers/MapEntrySetTester.java

        Set<Entry<K, V>> entrySet = getMap().entrySet();
        Iterator<Entry<K, V>> entryItr = entrySet.iterator();
        assertEquals(e0(), entryItr.next());
        entryItr.remove();
        assertTrue(getMap().isEmpty());
        assertFalse(entrySet.contains(e0()));
      }
    
      public void testContainsEntryWithIncomparableKey() {
        try {
          assertFalse(getMap().entrySet().contains(mapEntry(IncomparableType.INSTANCE, v0())));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/testers/MapEntrySetTester.java

        Set<Entry<K, V>> entrySet = getMap().entrySet();
        Iterator<Entry<K, V>> entryItr = entrySet.iterator();
        assertEquals(e0(), entryItr.next());
        entryItr.remove();
        assertTrue(getMap().isEmpty());
        assertFalse(entrySet.contains(e0()));
      }
    
      public void testContainsEntryWithIncomparableKey() {
        try {
          assertFalse(getMap().entrySet().contains(mapEntry(IncomparableType.INSTANCE, v0())));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/AbstractMultiset.java

      @LazyInit @CheckForNull private transient Set<Entry<E>> entrySet;
    
      @Override
      public Set<Entry<E>> entrySet() {
        Set<Entry<E>> result = entrySet;
        if (result == null) {
          entrySet = result = createEntrySet();
        }
        return result;
      }
    
      @WeakOuter
      class EntrySet extends Multisets.EntrySet<E> {
        @Override
        Multiset<E> multiset() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 01 22:07:10 UTC 2021
    - 6K bytes
    - Viewed (0)
  5. android/guava-testlib/test/com/google/common/collect/testing/MapTestSuiteBuilderTests.java

                      return map.entrySet().remove(o);
                    }
    
                    @Override
                    public boolean containsAll(Collection<?> c) {
                      return map.entrySet().containsAll(c);
                    }
    
                    @Override
                    public boolean removeAll(Collection<?> c) {
                      return map.entrySet().removeAll(c);
                    }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Apr 19 19:24:36 UTC 2023
    - 11.5K bytes
    - Viewed (0)
  6. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/DescendingMultiset.java

      abstract Iterator<Entry<E>> entryIterator();
    
      @Nullable private transient Set<Entry<E>> entrySet;
    
      @Override
      public Set<Entry<E>> entrySet() {
        Set<Entry<E>> result = entrySet;
        return (result == null) ? entrySet = createEntrySet() : result;
      }
    
      Set<Entry<E>> createEntrySet() {
        return new Multisets.EntrySet<E>() {
          @Override
          Multiset<E> multiset() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jan 24 16:03:45 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/DescendingMultiset.java

      @LazyInit @CheckForNull private transient Set<Entry<E>> entrySet;
    
      @Override
      public Set<Entry<E>> entrySet() {
        Set<Entry<E>> result = entrySet;
        return (result == null) ? entrySet = createEntrySet() : result;
      }
    
      Set<Entry<E>> createEntrySet() {
        @WeakOuter
        class EntrySetImpl extends Multisets.EntrySet<E> {
          @Override
          Multiset<E> multiset() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jun 26 21:02:13 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/MapsTransformValuesUnmodifiableIteratorTest.java

        }
    
        @Override
        public Set<Entry<K, V>> entrySet() {
          return new ForwardingSet<Entry<K, V>>() {
            @Override
            protected Set<Entry<K, V>> delegate() {
              return delegate.entrySet();
            }
    
            @Override
            public Iterator<Entry<K, V>> iterator() {
              return Iterators.unmodifiableIterator(delegate.entrySet().iterator());
            }
    
            @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/SynchronizedMapTest.java

      }
    
      public void testEntrySet() {
        Map<String, Integer> map = create();
        Set<Entry<String, Integer>> entrySet = map.entrySet();
        assertTrue(entrySet instanceof SynchronizedSet);
        assertSame(mutex, ((SynchronizedSet<?>) entrySet).mutex);
      }
    
      public void testEquals() {
        boolean unused = create().equals(new HashMap<String, Integer>());
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Aug 06 17:23:04 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/reflect/MutableTypeToInstanceMapTest.java

      public void testEntrySetMutationThrows() {
        map.putInstance(String.class, "test");
        assertEquals(TypeToken.of(String.class), map.entrySet().iterator().next().getKey());
        assertEquals("test", map.entrySet().iterator().next().getValue());
        assertThrows(
            UnsupportedOperationException.class, () -> map.entrySet().iterator().next().setValue(1));
      }
    
      public void testEntrySetToArrayMutationThrows() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 17:15:24 UTC 2024
    - 7.9K bytes
    - Viewed (0)
Back to top