程序包 proguard.util
类 ListUtil
java.lang.Object
proguard.util.ListUtil
This class provides some utility methods for working with
java.util.List instances.-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明commaSeparatedList(String string) Creates a List of String objects from the given comma-separated String.static StringcommaSeparatedString(List<String> list, boolean quoteStrings) Creates a comma-separated String from the given List of String objects.static <T> List<T>concatenate(List<T> list1, List<T> list2) Returns a List instance that contains the elements of the two given List instances.filter(Collection<String> list, StringMatcher filter) Returns the subset of the given list, containing all strings that match the given filter.static voidstatic int[]toIntArray(List<Integer> integerList) Converts a List of Integers to an int array.
-
构造器详细资料
-
ListUtil
public ListUtil()
-
-
方法详细资料
-
concatenate
Returns a List instance that contains the elements of the two given List instances. The instances may be null. If both instances are null, the result is null too. -
filter
Returns the subset of the given list, containing all strings that match the given filter. -
commaSeparatedString
Creates a comma-separated String from the given List of String objects. -
commaSeparatedList
Creates a List of String objects from the given comma-separated String. -
toIntArray
Converts a List of Integers to an int array.- 参数:
integerList- the List of Integers to convert.- 返回:
- the corresponding int array.
-
main
-