public static <K, E, V extends Set<E>> Set<E> getOrEmptySet(final Map<K, V> map, final Object key) {
        if (N.isNullOrEmpty(map)) {
            return N.<E> emptySet();
        }

        final V val = map.get(key);

        if (val != null || map.containsKey(key)) {
            return val;
        } else {
            return N.emptySet();
        }
    }
public static < K , E , V extends Set < E > > Set < E > getOrEmptySet ( final Map < K , V > map , final Object key ) { if ( N . isNullOrEmpty ( map ) ) { return N . < E > emptySet ( ) ; } final V val = map . get ( key ) ; if ( val != null || map . containsKey ( key ) ) { return val ; } else { return N . emptySet ( ) ; } }
Returns the value to which the specified key is mapped, or
an empty immutable {@code Set} if this map contains no mapping for the key.

@param map
@param key
@return