类 SetFactories
java.lang.Object
spring.turbo.util.collection.SetFactories
Set 创建工具- 从以下版本开始:
- 1.0.9
- 作者:
- 应卓
- 另请参阅:
-
方法概要
修饰符和类型方法说明static <T> HashSet<T>newHashSet(T... elements) static <T> LinkedHashSet<T>newLinkedHashSet(T... elements) static <T> TreeSet<T>newTreeSet(Comparator<T> comparator, T... elements) static <T extends Comparable<T>>
TreeSet<T>newTreeSet(T... elements) static <T> Set<T>newUnmodifiableSet(T... elements) static <T> HashSet<T>nullSafeNewHashSet(T... elements) static <T> LinkedHashSet<T>nullSafeNewLinkedHashSet(T... elements) static <T> TreeSet<T>nullSafeNewTreeSet(Comparator<T> comparator, T... elements) static <T extends Comparable<T>>
TreeSet<T>nullSafeNewTreeSet(T... elements)
-
方法详细资料
-
newUnmodifiableSet
-
newHashSet
-
newLinkedHashSet
-
newTreeSet
-
newTreeSet
-
nullSafeNewHashSet
-
nullSafeNewLinkedHashSet
-
nullSafeNewTreeSet
@SafeVarargs public static <T extends Comparable<T>> TreeSet<T> nullSafeNewTreeSet(@Nullable T... elements) -
nullSafeNewTreeSet
@SafeVarargs public static <T> TreeSet<T> nullSafeNewTreeSet(Comparator<T> comparator, @Nullable T... elements)
-