public class Lists extends Object
Constructor and Description |
---|
Lists() |
Modifier and Type | Method and Description |
---|---|
static ListBuilder |
list()
Instantiates a new
ListBuilder using an ArrayList. |
static ListBuilder |
list(List list)
Instantiates a new
ListBuilder using the given list. |
static ListBuilder |
list(Object e)
Instantiates a new
ListBuilder using an ArrayList and the given element. |
public static ListBuilder list()
ListBuilder
using an ArrayList.ListBuilder
instance.public static ListBuilder list(Object e)
ListBuilder
using an ArrayList and the given element.e
- element to be appended to this listListBuilder
instance.public static ListBuilder list(List list)
ListBuilder
using the given list.list
- The delegate List to use.ListBuilder
instance.