Package java.util
Class Collections

Public Method unmodifiableList

static List unmodifiableList(List l)

_INSERT_METHOD_SIGNATURE_HERE_

Description:

Returns an unmodifiable view of the specified list. This method allows modules to provide users with "read-only" access to internal lists. Query operations on the returned list "read through" to the specified list, and attempts to modify the returned list, whether direct or via its iterator, result in an UnsupportedOperationException.

The returned list will be serializable if the specified list is serializable.