public static <E> List<E> of (E e1, E e2, E e3, E e4)

Returns an unmodifiable list containing four elements. See Unmodifiable Lists for details.

Parameters:
<E>    the List's element type
e1    the first element
e2    the second element
e3    the third element
e4    the fourth element

Returns:  a List containing the specified elements

Exceptions:
NullPointerException    if an element is null

Since:  9