Package | Description |
---|---|
com.google.common.collect |
This package contains generic collection interfaces and implementations, and
other utilities for working with collections.
|
com.google.common.net |
This package contains utility methods and classes for working with net
addresses (numeric IP and domain names).
|
Modifier and Type | Method and Description |
---|---|
ImmutableList<E> |
ImmutableList.asList()
Returns this list instance.
|
ImmutableList<E> |
ImmutableCollection.asList()
Returns a list view of the collection.
|
ImmutableList<E> |
ImmutableList.Builder.build()
Returns a newly-created
ImmutableList based on the contents of
the Builder . |
static ImmutableList<Character> |
Lists.charactersOf(String string)
Returns a view of the specified string as an immutable list of
Character values. |
static <E> ImmutableList<E> |
ImmutableList.copyOf(Collection<? extends E> elements)
Returns an immutable list containing the given elements, in order.
|
static <E> ImmutableList<E> |
ImmutableList.copyOf(E[] elements)
Returns an immutable list containing the given elements, in order.
|
static <E> ImmutableList<E> |
ImmutableList.copyOf(Iterable<? extends E> elements)
Returns an immutable list containing the given elements, in order.
|
static <E> ImmutableList<E> |
ImmutableList.copyOf(Iterator<? extends E> elements)
Returns an immutable list containing the given elements, in order.
|
ImmutableList<V> |
ImmutableListMultimap.get(K key)
Returns an immutable list of the values for the given key.
|
<E extends T> |
Ordering.immutableSortedCopy(Iterable<E> iterable)
Returns an immutable copy of the given iterable sorted by this
ordering.
|
static <E> ImmutableList<E> |
ImmutableList.of()
Returns the empty immutable list.
|
static <E> ImmutableList<E> |
ImmutableList.of(E element)
Returns an immutable list containing a single element.
|
static <E> ImmutableList<E> |
ImmutableList.of(E[] elements)
Deprecated.
use
copyOf(Object[]) . This method is scheduled for
deletion in October 2011. |
static <E> ImmutableList<E> |
ImmutableList.of(E e1,
E e2)
Returns an immutable list containing the given elements, in order.
|
static <E> ImmutableList<E> |
ImmutableList.of(E e1,
E e2,
E e3)
Returns an immutable list containing the given elements, in order.
|
static <E> ImmutableList<E> |
ImmutableList.of(E e1,
E e2,
E e3,
E e4)
Returns an immutable list containing the given elements, in order.
|
static <E> ImmutableList<E> |
ImmutableList.of(E e1,
E e2,
E e3,
E e4,
E e5)
Returns an immutable list containing the given elements, in order.
|
static <E> ImmutableList<E> |
ImmutableList.of(E e1,
E e2,
E e3,
E e4,
E e5,
E e6)
Returns an immutable list containing the given elements, in order.
|
static <E> ImmutableList<E> |
ImmutableList.of(E e1,
E e2,
E e3,
E e4,
E e5,
E e6,
E e7)
Returns an immutable list containing the given elements, in order.
|
static <E> ImmutableList<E> |
ImmutableList.of(E e1,
E e2,
E e3,
E e4,
E e5,
E e6,
E e7,
E e8)
Returns an immutable list containing the given elements, in order.
|
static <E> ImmutableList<E> |
ImmutableList.of(E e1,
E e2,
E e3,
E e4,
E e5,
E e6,
E e7,
E e8,
E e9)
Returns an immutable list containing the given elements, in order.
|
static <E> ImmutableList<E> |
ImmutableList.of(E e1,
E e2,
E e3,
E e4,
E e5,
E e6,
E e7,
E e8,
E e9,
E e10)
Returns an immutable list containing the given elements, in order.
|
static <E> ImmutableList<E> |
ImmutableList.of(E e1,
E e2,
E e3,
E e4,
E e5,
E e6,
E e7,
E e8,
E e9,
E e10,
E e11)
Returns an immutable list containing the given elements, in order.
|
static <E> ImmutableList<E> |
ImmutableList.of(E e1,
E e2,
E e3,
E e4,
E e5,
E e6,
E e7,
E e8,
E e9,
E e10,
E e11,
E e12,
E... others)
Returns an immutable list containing the given elements, in order.
|
ImmutableList<V> |
ImmutableListMultimap.removeAll(Object key)
Guaranteed to throw an exception and leave the multimap unmodified.
|
ImmutableList<V> |
ImmutableListMultimap.replaceValues(K key,
Iterable<? extends V> values)
Guaranteed to throw an exception and leave the multimap unmodified.
|
ImmutableList<E> |
ImmutableList.reverse()
Returns a view of this immutable list in reverse order.
|
abstract ImmutableList<E> |
ImmutableList.subList(int fromIndex,
int toIndex)
Returns an immutable list of the elements between the specified
fromIndex , inclusive, and toIndex , exclusive. |
Modifier and Type | Method and Description |
---|---|
ImmutableList<String> |
InternetDomainName.parts()
Returns the individual components of this domain name, normalized to all
lower case.
|
Copyright © 2010-2012. All Rights Reserved.