Collections.singletonList

Returns an immutable list containing only the specified object. The returned list is serializable.

@param !(T) the class of the objects in the list @param o the sole object to be stored in the returned list. @return an immutable list containing only the specified object.

class Collections
static
singletonList
(
T
)
(
T o
)

Meta