Java com.google.common.collect Lists fields, constructors, methods, implement or subclass

Example usage for Java com.google.common.collect Lists fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.google.common.collect Lists.

The text is from its open source code.

Method

ListasList(@Nullable E first, E[] rest)
Returns an unmodifiable list containing the specified first element and backed by the specified array of additional elements.
ListasList(@Nullable E first, @Nullable E second, E[] rest)
Returns an unmodifiable list containing the specified first and second element, and backed by the specified array of additional elements.
List>cartesianProduct(List> 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.
List>cartesianProduct(List... 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.
ImmutableListcharactersOf(String string)
Returns a view of the specified string as an immutable list of Character values.
ListcharactersOf(CharSequence sequence)
Returns a view of the specified CharSequence as a List , viewing sequence as a sequence of Unicode code units.
ArrayListnewArrayList()
Creates a mutable, empty ArrayList instance (for Java 6 and earlier).
ArrayListnewArrayList(E... elements)
Creates a mutable ArrayList instance containing the given elements.
ArrayListnewArrayList(Iterable elements)
Creates a mutable ArrayList instance containing the given elements; a very thin shortcut for creating an empty list then calling Iterables#addAll .
ArrayListnewArrayList(Iterator elements)
Creates a mutable ArrayList instance containing the given elements; a very thin shortcut for creating an empty list and then calling Iterators#addAll .
ArrayListnewArrayListWithCapacity(int initialArraySize)
Creates an ArrayList instance backed by an array with the specified initial size; simply delegates to ArrayList#ArrayList(int) .
ArrayListnewArrayListWithExpectedSize(int estimatedSize)
Creates an ArrayList instance to hold estimatedSize elements, plus an unspecified amount of padding; you almost certainly mean to call #newArrayListWithCapacity (see that method for further advice on usage).
CopyOnWriteArrayListnewCopyOnWriteArrayList()
Creates an empty CopyOnWriteArrayList instance.
CopyOnWriteArrayListnewCopyOnWriteArrayList(Iterable elements)
Creates a CopyOnWriteArrayList instance containing the given elements.
LinkedListnewLinkedList()
Creates a mutable, empty LinkedList instance (for Java 6 and earlier).
LinkedListnewLinkedList(Iterable elements)
Creates a mutable LinkedList instance containing the given elements; a very thin shortcut for creating an empty list then calling Iterables#addAll .
List>partition(List list, int size)
Returns consecutive List#subList(int,int) sublists of a list, each of the same size (the final list may be smaller).
Listreverse(List list)
Returns a reversed view of the specified list.
Listtransform(List fromList, Function function)
Returns a list that applies function to each element of fromList .