public static <V> KeyValueSource<String, V> fromSet(ISet<? extends V> set) {
        return new SetKeyValueSource<V>(set.getName());
    }
public static < V > KeyValueSource < String , V > fromSet ( ISet < ? extends V > set ) { return new SetKeyValueSource < V > ( set . getName ( ) ) ; }
A helper method to build a KeyValueSource implementation based on the specified {@link ISet}.<br/>
The key returned by this KeyValueSource implementation is <b>ALWAYS</b> the name of the set itself,
whereas the value are the entries of the set, one by one. This implementation behaves like a MultiMap
with a single key but multiple values.

@param set set to build a KeyValueSource implementation
@param <V> value type of the set
@return KeyValueSource implementation based on the specified set