Package proguard.util
Class ListUtil
java.lang.Object
proguard.util.ListUtil
This class provides some utility methods for working with
java.util.List instances.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncommaSeparatedList(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.
-
Constructor Details
-
ListUtil
public ListUtil()
-
-
Method Details
-
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.- Parameters:
integerList- the List of Integers to convert.- Returns:
- the corresponding int array.
-
main
-