All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.vip.vjtools.vjkit.collection.MoreLists Maven / Gradle / Ivy

There is a newer version: 1.0.8
Show newest version
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 c) {
		return new SortedArrayList(c);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy