You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
package cn.iocoder.dashboard.util.collection;
|
|
|
|
import java.util.Arrays;
|
|
import java.util.HashSet;
|
|
import java.util.Set;
|
|
|
|
/**
|
|
* Set 工具类
|
|
*
|
|
* @author 芋道源码
|
|
*/
|
|
public class SetUtils {
|
|
|
|
public static <T> Set<T> asSet(T... objs) {
|
|
return new HashSet<>(Arrays.asList(objs));
|
|
}
|
|
|
|
}
|