| Package | Description |
|---|---|
| java.util |
| Modifier and Type | Interface and Description |
|---|---|
interface |
NavigableSet<E>
NavigableSet is a SortedSet with navigation methods answering the closest
matches for specified item.
|
interface |
SortedSet<E>
SortedSet is a Set which iterates over its elements in a sorted order.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractSet<E>
An AbstractSet is an abstract implementation of the Set interface.
|
class |
HashSet<E>
HashSet is an implementation of a Set.
|
class |
LinkedHashSet<E>
LinkedHashSet is a variant of HashSet.
|
class |
TreeSet<E>
TreeSet is an implementation of SortedSet.
|
| Modifier and Type | Field and Description |
|---|---|
static Set |
Collections.EMPTY_SET
An empty immutable instance of
Set. |
| Modifier and Type | Method and Description |
|---|---|
static <T> Set<T> |
Collections.emptySet()
Returns a type-safe empty, immutable
Set. |
Set<Map.Entry<K,V>> |
TreeMap.entrySet()
Returns a set containing all of the mappings in this map.
|
Set<Map.Entry<K,V>> |
Map.entrySet()
Returns a
Set containing all of the mappings in this Map. |
Set<Map.Entry<K,V>> |
LinkedHashMap.entrySet()
Returns a set containing all of the mappings in this map.
|
Set<Map.Entry<K,V>> |
IdentityHashMap.entrySet()
Returns a set containing all of the mappings in this map.
|
Set<Map.Entry<K,V>> |
Hashtable.entrySet()
Returns a set of the mappings contained in this
Hashtable. |
Set<Map.Entry<K,V>> |
HashMap.entrySet()
Returns a set containing all of the mappings in this map.
|
abstract Set<Map.Entry<K,V>> |
AbstractMap.entrySet()
Returns a set containing all of the mappings in this map.
|
Set<K> |
TreeMap.keySet()
Returns a set of the keys contained in this map.
|
Set<K> |
Map.keySet()
Returns a set of the keys contained in this
Map. |
Set<K> |
LinkedHashMap.keySet()
Returns a set of the keys contained in this map.
|
Set<K> |
IdentityHashMap.keySet()
Returns a set of the keys contained in this map.
|
Set<K> |
Hashtable.keySet()
Returns a set of the keys contained in this
Hashtable. |
Set<K> |
HashMap.keySet()
Returns a set of the keys contained in this map.
|
Set<K> |
AbstractMap.keySet()
Returns a set of the keys contained in this map.
|
static <E> Set<E> |
Collections.newSetFromMap(Map<E,Boolean> map)
Answers a set backed by a map.
|
static <E> Set<E> |
Collections.singleton(E object)
Returns a set containing the specified element.
|
static <E> Set<E> |
Collections.synchronizedSet(Set<E> set)
Returns a wrapper on the specified set which synchronizes all access to
the set.
|
static <E> Set<E> |
Collections.unmodifiableSet(Set<? extends E> set)
Returns a wrapper on the specified set which throws an
UnsupportedOperationException whenever an attempt is made to
modify the set. |
| Modifier and Type | Method and Description |
|---|---|
static <E> Set<E> |
Collections.synchronizedSet(Set<E> set)
Returns a wrapper on the specified set which synchronizes all access to
the set.
|
static <E> Set<E> |
Collections.unmodifiableSet(Set<? extends E> set)
Returns a wrapper on the specified set which throws an
UnsupportedOperationException whenever an attempt is made to
modify the set. |
Copyright © 2026. All rights reserved.