public static <T> Set<T> createHashSet(T... arr) {
        int size = arr == null ? 0 : arr.length;
        Set<T> set = new HashSet<T>(size);
        if (arr != null && arr.length > 0) {
            Collections.addAll(set, arr);
        }
        return set;
    }
@author Robert HG (254963746@qq.com) on 6/23/14.
lts-core/src/main/java/com/github/ltsopensource/core/commons/utils/CollectionUtils.java