public static <T>Set<T> emptySet(final Set<T> set){
  return (set != null ? set : Collections.<T>emptySet());
}

public static < T > Set < T > emptySet ( final Set < T > set ) { return ( set != null ? set : Collections . < T > emptySet ( ) ) ; }
null - safe implementation for method invocations that return a set collection . if the returned set is null , then this method will return an empty set in it ' s place . < p / >
