Searched defs:keySet (Results 1 - 24 of 24) sorted by relevance

/libcore/ojluni/src/main/java/java/util/
H A DSortedMap.java34 * {@code entrySet}, {@code keySet} and {@code values} methods).
243 Set<K> keySet(); method in interface:SortedMap
H A DAbstractMap.java317 * public Set<K> keySet() {
318 * Set<K> ks = keySet; // single racy read
321 * keySet = ks;
327 transient Set<K> keySet; field in class:AbstractMap
346 public Set<K> keySet() { method in class:AbstractMap
347 Set<K> ks = keySet;
384 keySet = ks;
574 result.keySet = null;
H A DEnumMap.java40 * in the iterators returned by the collections views ({@link #keySet()},
178 keyType = m.keySet().iterator().next().getDeclaringClass();
375 * {@link Map#keySet()}. The set's iterator will return the keys
381 public Set<K> keySet() { method in class:EnumMap
382 Set<K> ks = keySet;
385 keySet = ks;
459 * {@link Map#keySet()}. The set's iterator will return the
H A DMap.java325 Set<K> keySet(); method in interface:Map
H A DLinkedHashMap.java148 * <li>For a Collection view {@code c = lhm.keySet()},
149 * {@code c = lhm.keySet()} or {@code c = lhm.values()}, use
563 public Set<K> keySet() { method in class:LinkedHashMap
564 Set<K> ks = keySet;
567 keySet = ks;
H A DHashtable.java255 * @see #keySet()
554 t.keySet = null;
622 private transient volatile Set<K> keySet; field in class:Hashtable
641 public Set<K> keySet() { method in class:Hashtable
642 if (keySet == null)
643 keySet = Collections.synchronizedSet(new KeySet(), this);
644 return keySet;
H A DIdentityHashMap.java965 public Set<K> keySet() { method in class:IdentityHashMap
966 Set<K> ks = keySet;
969 keySet = ks;
H A DWeakHashMap.java866 public Set<K> keySet() { method in class:WeakHashMap
867 Set<K> ks = keySet;
870 keySet = ks;
H A DHashMap.java399 * for keySet() and values().
904 public Set<K> keySet() { method in class:HashMap
905 Set<K> ks = keySet;
908 keySet = ks;
1770 keySet = null;
H A DResourceBundle.java243 * return Collections.enumeration(keySet());
247 * // can rely on the keySet() value.
361 private volatile Set<String> keySet; field in class:ResourceBundle
1758 Set<CacheKey> set = cacheList.keySet();
1818 public Set<String> keySet() { method in class:ResourceBundle
1844 if (keySet == null) {
1846 if (keySet == null) {
1855 keySet = keys;
1859 return keySet;
H A DTreeMap.java817 public Set<K> keySet() { method in class:TreeMap
1609 public final Set<K> keySet() { method in class:TreeMap.NavigableSubMap
H A DCollections.java1511 private transient Set<K> keySet; field in class:Collections.UnmodifiableMap
1515 public Set<K> keySet() { method in class:Collections.UnmodifiableMap
1516 if (keySet==null)
1517 keySet = unmodifiableSet(m.keySet());
1518 return keySet;
2573 * Set s = m.keySet(); // Needn't be in synchronized block
2644 private transient Set<K> keySet; field in class:Collections.SynchronizedMap
2648 public Set<K> keySet() { method in class:Collections.SynchronizedMap
2650 if (keySet
2940 public NavigableSet<K> keySet() { method in class:Collections.SynchronizedNavigableMap
3658 public Set<K> keySet() { return m.keySet(); } method in class:Collections.CheckedMap
4165 public NavigableSet<K> keySet() { method in class:Collections.CheckedNavigableMap
4627 public Set<K> keySet() {return emptySet();} method in class:Collections.EmptyMap
4927 private transient Set<K> keySet; field in class:Collections.SingletonMap
4931 public Set<K> keySet() { method in class:Collections.SingletonMap
[all...]
/libcore/ojluni/src/main/java/java/util/concurrent/
H A DConcurrentNavigableMap.java150 NavigableSet<K> keySet(); method in interface:ConcurrentNavigableMap
H A DConcurrentSkipListMap.java378 private transient KeySet<K,V> keySet; field in class:ConcurrentSkipListMap
392 keySet = null;
1829 public NavigableSet<K> keySet() { method in class:ConcurrentSkipListMap
1830 KeySet<K,V> ks = keySet;
1831 return (ks != null) ? ks : (keySet = new KeySet<>(this));
1835 KeySet<K,V> ks = keySet;
1836 return (ks != null) ? ks : (keySet = new KeySet<>(this));
3051 public NavigableSet<K> keySet() { method in class:ConcurrentSkipListMap.SubMap
H A DConcurrentHashMap.java133 * (using {@link #keySet(Object)} when only keys are of interest, and the
821 private transient KeySetView<K,V> keySet; field in class:ConcurrentHashMap
1245 public Set<K> keySet() { method in class:ConcurrentHashMap
1247 return (ks = keySet) != null ? ks : (keySet = new KeySetView<K,V>(this, null));
2142 * @see #keySet()
2220 public KeySetView<K,V> keySet(V mappedValue) { method in class:ConcurrentHashMap
4589 * See {@link #keySet(Object) keySet(V)},
/libcore/ojluni/src/main/java/sun/util/resources/
H A DOpenListResourceBundle.java97 return lookup.keySet();
101 public Set<String> keySet() { method in class:OpenListResourceBundle
108 ks.addAll(parent.keySet());
/libcore/support/src/test/java/tests/support/
H A DSupport_MapTest.java56 // keySet()
57 testKeySet(modifiableMap.keySet(), unmodifiableMap.keySet());
96 private static void testKeySet(Set<String> referenceKeySet, Set<String> keySet) { argument
97 // keySet should be a set of the strings "0" to "99"
99 testKeySetContents(keySet);
104 crossCheckOrdering(referenceKeySet, keySet, String.class);
107 private static void testKeySetContents(Set<String> keySet) { argument
109 assertTrue("should contain \"0\"", keySet.contains("0"));
110 assertTrue("should contain \"50\"", keySet
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
H A DRefSortedMap.java282 public Set<K> keySet() { method in class:RefSortedMap
283 return tailMap(firstKey()).keySet();
H A DCollectionsTest.java1454 synchMap.keySet().remove(objArray[50].toString());
1456 "Removing a key from the keySet of the synchronized map did not remove it from the synchronized map: ",
1459 "Removing a key from the keySet of the synchronized map did not remove it from the original map",
1465 // entrySet() / keySet() methods: iterator(), toArray(T[]) and toArray(). See bug 72073.
1577 synchMap.keySet().remove(objArray[50].toString());
1579 "Removing a key from the keySet of the synchronized map did not remove it from the synchronized map",
1582 "Removing a key from the keySet of the synchronized map did not remove it from the original map",
1760 Iterator iterator = hm.keySet().iterator();
1884 Iterator i = hm.keySet().iterator();
2102 Iterator mapIter = map.keySet()
2310 testKeySet(Set<String> referenceKeySet, Set<String> keySet) argument
2321 testKeySetContents(Set<String> keySet) argument
[all...]
/libcore/json/src/main/java/org/json/
H A DJSONObject.java658 return nameValuePairs.keySet().iterator();
671 public Set<String> keySet() { method in class:JSONObject
672 return nameValuePairs.keySet();
682 : new JSONArray(new ArrayList<String>(nameValuePairs.keySet()));
/libcore/ojluni/src/main/java/java/util/jar/
H A DAttributes.java244 public Set<Object> keySet() { method in class:Attributes
245 return map.keySet();
/libcore/ojluni/src/main/java/java/lang/
H A DProcessEnvironment.java248 public Set<String> keySet() { method in class:ProcessEnvironment.StringEnvironment
249 return new StringKeySet(m.keySet());
/libcore/ojluni/src/main/java/java/security/
H A DProvider.java293 public Set<Object> keySet() { method in class:Provider
295 return Collections.unmodifiableSet(super.keySet());
/libcore/benchmarks/src/benchmarks/regression/
H A DR.java1782 public static final int keySet = 0; field in class:R

Completed in 443 milliseconds