public static < T > Set < T > newSet ( T ... contents ) { Set < T > set ; if ( contents == null || contents . length == 0 ) return newSet ( ) ; set = newSet ( contents . length ) ; Collections . addAll ( set , contents ) ; return set ; }
Create a set with contents .