List instances. Also see this class's counterparts
Sets, Maps and Queues.
See the Guava User Guide article on Lists.
| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class | |
| private static class | |
| private static class | |
| private static class | |
| private static class | |
| private static class | |
| private static class | |
| private static class | |
| private static class | Lists.
Implementation of a transforming random access list. |
| private static class | Lists.
Implementation of a sequential transforming list. |
| private static class |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static <E extends @Nullable Object> boolean | addAllImpl(List<E> list, int index, Iterable<? extends E> elements)
An implementation of |
| public static <E extends @Nullable Object> List | Returns: an unmodifiable list containing the specified elementsthe first element first, E[] an array of additional elements, possibly empty rest)Returns an unmodifiable list containing the specified first element and backed by the specified array of additional elements. |
| public static <E extends @Nullable Object> List | Returns: an unmodifiable list containing the specified elementsthe first element first, E the second element second, E[] an array of additional elements, possibly empty rest)Returns an unmodifiable list containing the specified first and second element, and backed by the specified array of additional elements. |
| public static < any common base class shared by all axes (often just B> ListObject) | Returns: the Cartesian product, as an immutable list containing immutable liststhe lists to choose elements from, in the order that the elements chosen from
those lists should appear in the resulting lists lists)Returns every possible list that can be formed by choosing one element from each of the given lists in order; the "n-ary Cartesian product" of the lists. |
| public static < any common base class shared by all axes (often just B> ListObject) | Returns: the Cartesian product, as an immutable list containing immutable liststhe lists to choose elements from, in the order that the elements chosen from
those lists should appear in the resulting lists lists)Returns every possible list that can be formed by choosing one element from each of the given lists in order; the "n-ary Cartesian product" of the lists. |
| pack-priv static <T extends @Nullable Object> List | |
| public static ImmutableList | charactersOf(String string)
Returns a view of the specified string as an immutable list of |
| public static List | Returns: anList<Character> view of the character sequencethe character sequence to view as a sequence)List of charactersReturns a view of the specified |
| pack-priv static int | |
| pack-priv static boolean | |
| pack-priv static int | |
| pack-priv static int | |
| private static int | |
| pack-priv static int | |
| private static int | |
| pack-priv static <E extends @Nullable Object> ListIterator | |
| public static <E extends @Nullable Object> ArrayList | |
| public static <E extends @Nullable Object> ArrayList | |
| public static <E extends @Nullable Object> ArrayList | newArrayList(Iterable<? extends E> elements)
Creates a mutable |
| public static <E extends @Nullable Object> ArrayList | newArrayList(Iterator<? extends E> elements)
Creates a mutable |
| public static <E extends @Nullable Object> ArrayList | Returns: a new, emptyArrayList which is guaranteed not to resize itself unless its size
reaches initialArraySize + 1the exact size of the initial backing array for the returned array list
( initialArraySize)ArrayList documentation calls this value the "capacity")Creates an |
| public static <E extends @Nullable Object> ArrayList | Returns: a new, emptyArrayList, sized appropriately to hold the estimated number of
elementsan estimate of the eventual estimatedSize)List#size() of the new listCreates an |
| public static <E extends @Nullable Object> CopyOnWriteArrayList | Returns: a new, emptyCopyOnWriteArrayListCreates an empty |
| public static <E extends @Nullable Object> CopyOnWriteArrayList | Returns: a newCopyOnWriteArrayList containing those elementsthe elements that the list should contain, in order elements)Creates a |
| public static <E extends @Nullable Object> LinkedList | |
| public static <E extends @Nullable Object> LinkedList | newLinkedList(Iterable<? extends E> elements)
Creates a mutable |
| public static <T extends @Nullable Object> List | |
| public static <T extends @Nullable Object> List | |
| pack-priv static <E extends @Nullable Object> List | subListImpl(final List<E> list, int fromIndex, int toIndex)
An implementation of |
| public static <F extends @Nullable Object, T extends @Nullable Object> List |