@ SafeVarargs public static < T > Set < T > of ( T ... elements ) { Preconditions . checkNotNull ( elements ) ; return ImmutableSet . < T > builder ( ) . addAll ( elements ) . build ( ) ; }
Creates a new immutable set that consists of given elements .