public static < T > Set < T > newSet ( T ... values ) { Set < T > set = new HashSet <> ( values . length ) ; Collections . addAll ( set , values ) ; return set ; }
Creates a mutable HashSet instance containing the given elements in unspecified order