public final class ArraysUtil extends Object
| 构造器和说明 |
|---|
ArraysUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static <T> List<T> |
deDupeArrayByHashSet(List<T> list)
数组去重
|
static <T> T[] |
deDupeArrayByHashSet(T[] objects)
使用HashSet 方式数组去重
|
static <T> List<T> |
deDupeArrayByTreeSet(List<T> list) |
static <T> T[] |
deDupeArrayByTreeSet(T[] objects)
使用treeSet 方式数组去重
|
static <T> T[] |
deDupeArrayByTreeSet(T[] objects,
Comparator<T> comparator)
使用treeSet 方式数组去重
|
public static <T> T[] deDupeArrayByTreeSet(T[] objects,
Comparator<T> comparator)
T - 泛型objects - objectscomparator - 自定义排序接口public static <T> T[] deDupeArrayByTreeSet(T[] objects)
T - 泛型objects - objectspublic static <T> T[] deDupeArrayByHashSet(T[] objects)
T - 泛型objects - objectsCopyright © 2018. All rights reserved.