| Modifier and Type | Method and Description | 
|---|---|
| static <T> T | first(List<T> list)Gets the first element of the given list, or null if none. | 
| static String | string(List<?> list)Converts the given list to a string. | 
| static String | string(List<?> list,
      boolean encloseSingletons)Converts the given list to a string. | 
| static String | string(List<?> list,
      String lDelimiter,
      String rDelimiter,
      String separator,
      boolean encloseSingletons)Converts the given list to a string. | 
public static <T> T first(List<T> list)
public static String string(List<?> list)
The list elements will be separated by a comma then a space. The list will be enclosed in square brackets.
list - The list to stringify.string(List, String, String, String, boolean)public static String string(List<?> list, boolean encloseSingletons)
 The list elements will be separated by a comma then a space. The list will
 be enclosed in square brackets unless it is a singleton with the
 encloseSingletons flag set to false.
 
list - The list to stringify.encloseSingletons - Whether to enclose singleton lists in brackets.string(List, String, String, String, boolean)public static String string(List<?> list, String lDelimiter, String rDelimiter, String separator, boolean encloseSingletons)
 The list elements will be comma-separated. It will be enclosed in square
 brackets unless the list is a singleton with the encloseSingletons
 flag set to false.
 
list - The list to stringify.lDelimiter - The left-hand symbol(s) in which to enclose the list.rDelimiter - The right-hand symbol(s) in which to enclose the list.separator - The symbol(s) to place in between each element.encloseSingletons - Whether to enclose singleton lists inside the
          delimiter symbols.Copyright © 2015–2022 SciJava. All rights reserved.