title: Java: Generic List to Set conversion and vice versa
body: <p>I Need a java function which converts from <code>java.util.List</code> to <code>java.util.Set</code> and vice versa, independent of type of objects in the <code>List/Set</code>.</p>