public static <T> Set<T> singleton (T o)

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

Parameters:
<T>    the class of the objects in the set
o    the sole object to be stored in the returned set.

Returns:  an immutable set containing only the specified object.