| Modifier and Type | Field and Description |
|---|---|
| private final T | |
| private final T | |
| private final T | |
| private final T | |
| private final T | |
| private final T | |
| private final T | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | each(Procedure<? super T> procedure)
Implements org. The procedure is executed for each element in the iterable. |
| public T | get(int index)
Implements org. Returns the element at the specified position in this list. |
| public T | getOnly()
Overrides default org. Returns the element if the iterable has exactly one element. |
| public ImmutableList | newWith(T newItem)
Implements org. This method is similar to the |
| public int | size()
Implements org. Returns the number of elements in this list. |
| element1 | back to summary |
|---|---|
| private final T element1 | |
| element2 | back to summary |
|---|---|
| private final T element2 | |
| element3 | back to summary |
|---|---|
| private final T element3 | |
| element4 | back to summary |
|---|---|
| private final T element4 | |
| element5 | back to summary |
|---|---|
| private final T element5 | |
| element6 | back to summary |
|---|---|
| private final T element6 | |
| element7 | back to summary |
|---|---|
| private final T element7 | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| ImmutableSeptupletonList | back to summary |
|---|---|
| pack-priv ImmutableSeptupletonList(T obj1, T obj2, T obj3, T obj4, T obj5, T obj6, T obj7) | |
| each | back to summary |
|---|---|
| public void each(Procedure<? super T> procedure) Implements org. Doc from org. The procedure is executed for each element in the iterable. Example using a Java 8 lambda expression: people.each(person -> LOGGER.info(person.getName()));This method is a variant of InternalIterable#forEach(Procedure)
that has a signature conflict with Iterable#forEach(java..
| |
| get | back to summary |
|---|---|
| public T get(int index) Implements org. Doc from java. Returns the element at the specified position in this list.
| |
| getOnly | back to summary |
|---|---|
| public T getOnly() Overrides default org. Doc from org. Returns the element if the iterable has exactly one element. Otherwise, throw
| |
| newWith | back to summary |
|---|---|
| public ImmutableList Implements org. Doc from org. This method is similar to the
| |
| size | back to summary |
|---|---|
| public int size() Implements org. Doc from java. Returns the number of elements in this list. If this list contains
more than
| |