org.apache.jena.atlas.lib
Class ListUtils
java.lang.Object
org.apache.jena.atlas.lib.ListUtils
public class ListUtils
- extends Object
Various things for lists
unique
public static <T> List<T> unique(List<T> list)
asList
public static List<Integer> asList(int... values)
str
public static <T> String str(T[] array)
str
public static String str(int[] array)
str
public static String str(long[] array)
print
public static <T> void print(IndentedWriter out,
List<T> list)
print
public static <T> void print(IndentedWriter out,
List<T> list,
String sep)
permute
public static <T> List<List<T>> permute(List<T> c)
- Return a list of lists of all the elements of collection in every order
Easy to run out of heap memory.
Licenced under the Apache License, Version 2.0