Uses of Class java.util.concurrent.ConcurrentHashMap.KeySetView (Java Platform SE 8 )
Date: 2026-04-17

## Uses of Class
java.util.concurrent.ConcurrentHashMap.KeySetView

- Packages that use ConcurrentHashMap.KeySetView
  Package | Description
  --- | ---
  java.util.concurrent | Utility classes commonly useful in concurrent programming.

- - ### Uses of ConcurrentHashMap.KeySetView in java.util.concurrent

    Methods in java.util.concurrent that return ConcurrentHashMap.KeySetView
    Modifier and Type | Method and Description
    --- | ---
    `ConcurrentHashMap.KeySetView<K,V>` | ConcurrentHashMap.`keySet()` Returns a `Set` view of the keys contained in this map.
    `ConcurrentHashMap.KeySetView<K,V>` | ConcurrentHashMap.`keySet(V mappedValue)` Returns a `Set` view of the keys in this map, using the given common mapped value for any additions (i.e., `Collection.add(E)` and `Collection.addAll(Collection)`).
    `static <K> ConcurrentHashMap.KeySetView<K,Boolean>` | ConcurrentHashMap.`newKeySet()` Creates a new `Set` backed by a ConcurrentHashMap from the given type to `Boolean.TRUE`.
    `static <K> ConcurrentHashMap.KeySetView<K,Boolean>` | ConcurrentHashMap.`newKeySet(int initialCapacity)` Creates a new `Set` backed by a ConcurrentHashMap from the given type to `Boolean.TRUE`.

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.