public class Lists extends Object
Constructor and Description |
---|
Lists() |
Modifier and Type | Method and Description |
---|---|
static <T> List<T> |
add(List<T> list,
int index,
T toAdd) |
static <T> List<T> |
add(List<T> list,
T toAdd) |
static <T> List<T> |
addAll(List<T> list,
List<T> toAdd) |
static <T> List<T> |
addAll(List<T> list,
T... toAdd) |
static <T> List<T> |
create() |
static <T> List<T> |
create(Collection<T> collection) |
static <T> List<T> |
create(T... items) |
static <T> List<T> |
create(T item) |
static <T> List<T> |
normalize(List<T> list) |
static <T> List<T> |
normalizeUnmodifiable(List<T> list) |
static <T> List<T> |
remove(List<T> list,
int toRemove) |
static <T> List<T> |
set(List<T> list,
int index,
T e) |
static <T> List<T> |
sort(List<T> list,
Comparator<? super T> sort) |
public static <T> List<T> create()
public static <T> List<T> create(Collection<T> collection)
public static <T> List<T> create(T item)
public static <T> List<T> create(T... items)
public static <T> List<T> sort(List<T> list, Comparator<? super T> sort)
Copyright © 2018. All rights reserved.