Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 235 for KeySet (0.06 sec)

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

        multimapView.remove("bar", 2);
        assertFalse(multimapView.containsKey("bar"));
        assertFalse(map.containsKey("bar"));
        assertEquals(map.keySet(), multimapView.keySet());
        assertEquals(map.keySet(), multimapView.keys().elementSet());
        assertThat(multimapView.keys()).contains("foo");
        assertThat(multimapView.values()).contains(1);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 38.4K bytes
    - Viewed (0)
  2. compat/maven-compat/src/main/java/org/apache/maven/artifact/versioning/ManagedVersionMap.java

                putAll(map);
            }
        }
    
        public String toString() {
            StringBuilder buffer = new StringBuilder("ManagedVersionMap (" + size() + " entries)\n");
            Iterator<String> iter = keySet().iterator();
            while (iter.hasNext()) {
                String key = iter.next();
                buffer.append(key).append('=').append(get(key));
                if (iter.hasNext()) {
                    buffer.append('\n');
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/RegularImmutableBiMap.java

        @SuppressWarnings("unchecked")
        ImmutableList<K> keyList =
            (ImmutableList<K>)
                new RegularImmutableMap.KeysOrValuesAsList(alternatingKeysAndValues, keyOffset, size);
        return new RegularImmutableMap.KeySet<>(this, keyList);
      }
    
      @Override
      boolean isPartialView() {
        return false;
      }
    
      // redeclare to help optimizers with b/310253115
      @SuppressWarnings("RedundantOverride")
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/LinkedListMultimapTest.java

        Multimap<String, Integer> map = create();
        map.put("bar", 1);
        map.put("foo", 2);
        map.put("bar", 3);
        map.put("bar", 4);
        assertEquals("[bar, foo]", map.keySet().toString());
        map.keySet().remove("bar");
        assertEquals("{foo=[2]}", map.toString());
      }
    
      public void testLinkedKeys() {
        Multimap<String, Integer> map = create();
        map.put("bar", 1);
        map.put("foo", 2);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 18K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/google/AbstractListMultimapTester.java

        }
    
        assertEquals(values.size(), multimap().get(key).size());
        assertEquals(values.size() > 0, multimap().containsKey(key));
        assertEquals(values.size() > 0, multimap().keySet().contains(key));
        assertEquals(values.size() > 0, multimap().keys().contains(key));
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/NewCustomTableTest.java

        assertThat(table.rowKeySet()).containsExactly("foo", "bar").inOrder();
      }
    
      public void testRowOrdering() {
        table = create("foo", 3, 'a', "bar", 1, 'b', "foo", 2, 'c');
        assertThat(table.row("foo").keySet()).containsExactly(2, 3).inOrder();
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 2K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/testers/MapReplaceAllTester.java

                  return values().asList().get(index + 1);
                });
        List<Entry<K, V>> orderedEntries = getOrderedElements();
        int index = 0;
        for (K key : getMap().keySet()) {
          assertEquals(orderedEntries.get(index).getKey(), key);
          index++;
        }
      }
    
      @MapFeature.Require(absent = SUPPORTS_PUT)
      @CollectionSize.Require(absent = ZERO)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:51:04 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/AbstractNavigableMap.java

        return tailMap(fromKey, true);
      }
    
      @Override
      public NavigableSet<K> navigableKeySet() {
        return new Maps.NavigableKeySet<>(this);
      }
    
      @Override
      public Set<K> keySet() {
        return navigableKeySet();
      }
    
      @Override
      public NavigableSet<K> descendingKeySet() {
        return descendingMap().navigableKeySet();
      }
    
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Jun 15 18:11:44 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/collection/CaseInsensitiveSet.java

         */
        public CaseInsensitiveSet(final int initialCapacity) {
            map = new CaseInsensitiveMap<>(initialCapacity);
        }
    
        @Override
        public Iterator<String> iterator() {
            return map.keySet().iterator();
        }
    
        @Override
        public int size() {
            return map.size();
        }
    
        @Override
        public boolean isEmpty() {
            return map.isEmpty();
        }
    
        @Override
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/core/misc/DynamicProperties.java

        }
    
        @Override
        public Enumeration<Object> keys() {
            return getProperties().keys();
        }
    
        @Override
        public Set<Object> keySet() {
            return getProperties().keySet();
        }
    
        @Override
        public void list(final PrintStream out) {
            getProperties().list(out);
        }
    
        @Override
        public void list(final PrintWriter out) {
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 9.6K bytes
    - Viewed (0)
Back to top