public static <E> List<E> of (E e1)

Returns an unmodifiable list containing one element. See Unmodifiable Lists for details.

Parameters:
<E>    the List's element type
e1    the single element

Returns:  a List containing the specified element

Exceptions:
NullPointerException    if the element is null

Since:  9