Android Utililty Methods Array to Set Convert

List of utility methods to do Array to Set Convert

Description

The list of methods to do Array to Set Convert are organized into topic(s).

Method

SetasSet(T... vals)
as Set
HashSet<T> result = new HashSet<T>();
for (T i : vals)
    result.add(i);
return result;
SetsetOf(final T... items)
set Of
return Collections.unmodifiableSet(new HashSet<T>(Arrays
        .asList(items)));