Package proguard.util

Class ListUtil

java.lang.Object
proguard.util.ListUtil

public class ListUtil extends Object
This class provides some utility methods for working with java.util.List instances.
  • Constructor Details

    • ListUtil

      public ListUtil()
  • Method Details

    • concatenate

      public 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. The instances may be null. If both instances are null, the result is null too.
    • filter

      public static List<String> filter(Collection<String> list, StringMatcher filter)
      Returns the subset of the given list, containing all strings that match the given filter.
    • commaSeparatedString

      public static String commaSeparatedString(List<String> list, boolean quoteStrings)
      Creates a comma-separated String from the given List of String objects.
    • commaSeparatedList

      public static List<String> commaSeparatedList(String string)
      Creates a List of String objects from the given comma-separated String.
    • toIntArray

      public static int[] toIntArray(List<Integer> integerList)
      Converts a List of Integers to an int array.
      Parameters:
      integerList - the List of Integers to convert.
      Returns:
      the corresponding int array.
    • main

      public static void main(String[] args)