@Deprecated public abstract class ReadOnlyList extends Object
Constructor and Description |
---|
ReadOnlyList()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static <E> Collection<E> |
create(Collection<E> collection)
Deprecated.
Create a read-only collection, based on the given Collection instance.
|
static <E> List<E> |
create(List<E> list)
Deprecated.
Create a read-only list, based on the given List instance.
|
static <K,V> Map<K,V> |
create(Map<K,V> map)
Deprecated.
Create a read-only map, based on the given Map instance.
|
static <E> Set<E> |
create(Set<E> set)
Deprecated.
Create a read-only set, based on the given Set instance.
|
public static <E> List<E> create(List<E> list)
list
- the source of the newly created read-only list.public static <E> Collection<E> create(Collection<E> collection)
collection
- the source of the newly created read-only collection.public static <K,V> Map<K,V> create(Map<K,V> map)
map
- the source of the newly created read-only map.