|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectr01f.util.types.Lists
public class Lists
| Constructor Summary | |
|---|---|
Lists()
|
|
| Method Summary | ||
|---|---|---|
static boolean |
isNullOrEmpty(java.util.List<?> list)
Checks if a list is null or empty |
|
static
|
newArrayList()
Creates a mutable, empty ArrayList instance. |
|
static
|
newArrayList(E... elements)
Creates a mutable ArrayList instance containing the given elements. |
|
static
|
newArrayList(java.lang.Iterable<? extends E> elements)
Creates a mutable ArrayList instance containing the given elements. |
|
static
|
newArrayList(java.util.Iterator<? extends E> elements)
Creates a mutable ArrayList instance containing the given elements. |
|
static
|
newArrayListWithCapacity(int size)
Creates an ArrayList instance backed by an array of the exact size specified; equivalent to ArrayList.ArrayList(int). |
|
static
|
newLinkedList()
Creates an empty LinkedList instance. |
|
static
|
newLinkedList(java.lang.Iterable<? extends E> elements)
Creates a LinkedList instance containing the given elements. |
|
static
|
newLinkedList(java.util.Iterator<? extends E> elements)
Creates a LinkedList instance containing the given elements. |
|
static
|
partition(java.util.List<E> list,
int size)
Returns consecutive sublists of a list, each of the same size (the final list may be smaller). |
|
static
|
reverse(java.util.List<E> list)
Returns a reversed view of the specified list. |
|
static
|
transform(java.util.List<E> fromList,
com.google.common.base.Function<? super E,? extends T> function)
Returns a list that applies function to each element of fromList. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Lists()
| Method Detail |
|---|
public static boolean isNullOrEmpty(java.util.List<?> list)
@GwtCompatible(serializable=true) public static <E> java.util.List<E> newArrayList(E... elements)
@GwtCompatible(serializable=true) public static <E> java.util.List<E> newArrayList(java.lang.Iterable<? extends E> elements)
@GwtCompatible(serializable=true) public static <E> java.util.List<E> newArrayList(java.util.Iterator<? extends E> elements)
@GwtCompatible(serializable=true) public static <E> java.util.List<E> newArrayList()
@GwtCompatible(serializable=true) public static <E> java.util.List<E> newArrayListWithCapacity(int size)
@GwtCompatible(serializable=true) public static <E> java.util.List<E> newLinkedList()
@GwtCompatible(serializable=true) public static <E> java.util.List<E> newLinkedList(java.lang.Iterable<? extends E> elements)
@GwtCompatible(serializable=true) public static <E> java.util.LinkedList<E> newLinkedList(java.util.Iterator<? extends E> elements)
public static <E> java.util.List<java.util.List<E>> partition(java.util.List<E> list,
int size)
public static <E> java.util.List<E> reverse(java.util.List<E> list)
public static <E,T> java.util.List<T> transform(java.util.List<E> fromList,
com.google.common.base.Function<? super E,? extends T> function)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||