com.vip.vjtools.vjkit.collection.MoreLists Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vjkit Show documentation
Show all versions of vjkit Show documentation
VIP's core java libraries
package com.vip.vjtools.vjkit.collection;
import java.util.Comparator;
import com.vip.vjtools.vjkit.collection.type.SortedArrayList;
/**
* 特殊的List类型
*/
public class MoreLists {
/**
* 排序的ArrayList.
*
* from Jodd的新类型,插入时排序,但指定插入index的方法如add(index,element)不支持
*/
@SuppressWarnings("rawtypes")
public static SortedArrayList createSortedArrayList() {
return new SortedArrayList();
}
/**
* 排序的ArrayList.
*
* from Jodd的新类型,插入时排序,但指定插入index的方法如add(index,element)不支持
*/
public static SortedArrayList createSortedArrayList(Comparator super T> c) {
return new SortedArrayList(c);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy