| Package | Description |
|---|---|
| java.util |
| Modifier and Type | Interface and Description |
|---|---|
interface |
SortedSet<E>
A
Set that further provides a total ordering on its elements. |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractSet<E>
This class provides a skeletal implementation of the Set
interface to minimize the effort required to implement this
interface.
|
class |
HashSet<E>
This class implements the Set interface, backed by a hash table
(actually a HashMap instance).
|
| Modifier and Type | Field and Description |
|---|---|
static Set |
Collections.EMPTY_SET
The empty set (immutable).
|
| Modifier and Type | Method and Description |
|---|---|
static <E> Set<E> |
Collections.checkedSet(Set<E> s,
Class<E> type)
Returns a dynamically typesafe view of the specified set.
|
static <T> Set<T> |
Collections.emptySet()
Returns the empty set (immutable).
|
Set<Map.Entry<K,V>> |
SortedMap.entrySet()
Returns a
Set view of the mappings contained in this map. |
Set<Map.Entry<K,V>> |
Map.entrySet()
Returns a
Set view of the mappings contained in this map. |
Set<Map.Entry<K,V>> |
Hashtable.entrySet()
Returns a
Set view of the mappings contained in this map. |
Set<Map.Entry<K,V>> |
HashMap.entrySet()
Returns a
Set view of the mappings contained in this map. |
abstract Set<Map.Entry<K,V>> |
AbstractMap.entrySet() |
Set<K> |
SortedMap.keySet()
Returns a
Set view of the keys contained in this map. |
Set<K> |
Map.keySet()
Returns a
Set view of the keys contained in this map. |
Set<K> |
Hashtable.keySet()
Returns a
Set view of the keys contained in this map. |
Set<K> |
HashMap.keySet()
Returns a
Set view of the keys contained in this map. |
Set<K> |
AbstractMap.keySet()
Returns a
Set view of the keys contained in this map. |
static <E> Set<E> |
Collections.newSetFromMap(Map<E,Boolean> map)
Returns a set backed by the specified map.
|
static <T> Set<T> |
Collections.singleton(T o)
Returns an immutable set containing only the specified object.
|
static <T> Set<T> |
Collections.synchronizedSet(Set<T> s)
Returns a synchronized (thread-safe) set backed by the specified
set.
|
static <T> Set<T> |
Collections.unmodifiableSet(Set<? extends T> s)
Returns an unmodifiable view of the specified set.
|
| Modifier and Type | Method and Description |
|---|---|
static <E> Set<E> |
Collections.checkedSet(Set<E> s,
Class<E> type)
Returns a dynamically typesafe view of the specified set.
|
static <T> Set<T> |
Collections.synchronizedSet(Set<T> s)
Returns a synchronized (thread-safe) set backed by the specified
set.
|
static <T> Set<T> |
Collections.unmodifiableSet(Set<? extends T> s)
Returns an unmodifiable view of the specified set.
|
Copyright © 2013 API Design. All Rights Reserved.