@SuppressWarnings({"unchecked"})
public static final <T> List<T> emptyList ()

Returns an empty list (immutable). This list is serializable.

This example illustrates the type-safe way to obtain an empty list:

     List<String> s = Collections.emptyList();
 

Parameters:
<T>    type of elements, if there were any, in the list

Returns:  an empty immutable list

See also:
EMPTY_LIST

Since:  1.5

@implNote Implementations of this method need not create a separate List object for each call. Using this method is likely to have comparable cost to using the like-named field. (Unlike this method, the field does not provide type safety.)