public static class ListBuilder.ImmutableListBuilder<E> extends java.lang.Object implements ListBuilder<E,com.google.common.collect.ImmutableList<E>,ListBuilder.ImmutableListBuilder<E>>
ListBuilder.ImmutableListBuilder<E>, ListBuilder.SimpleListBuilder<E>, ListBuilder.SimpleSetBuilder<E>| Constructor and Description |
|---|
ImmutableListBuilder() |
| Modifier and Type | Method and Description |
|---|---|
ListBuilder.ImmutableListBuilder<E> |
add(E elem) |
ListBuilder.ImmutableListBuilder<E> |
addAll(java.lang.Iterable<? extends E> elems) |
com.google.common.collect.ImmutableList<E> |
build() |
int |
size() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitatleastOne, immutableList, immutableList, immutableList, immutableListBuilder, immutableSet, immutableSet, immutableSet, immutableSet, immutableSortedSet, immutableSortedSet, immutableSortedSet, simpleList, simpleList, simpleList, simpleListBuilder, simpleListBuilder, simpleListBuilder, simpleSetBuilder, simpleSetBuilder, simpleSetBuilderpublic ListBuilder.ImmutableListBuilder<E> add(E elem)
add in interface ListBuilder<E,com.google.common.collect.ImmutableList<E>,ListBuilder.ImmutableListBuilder<E>>public ListBuilder.ImmutableListBuilder<E> addAll(java.lang.Iterable<? extends E> elems)
addAll in interface ListBuilder<E,com.google.common.collect.ImmutableList<E>,ListBuilder.ImmutableListBuilder<E>>public int size()
size in interface ListBuilder<E,com.google.common.collect.ImmutableList<E>,ListBuilder.ImmutableListBuilder<E>>public com.google.common.collect.ImmutableList<E> build()
build in interface ListBuilder<E,com.google.common.collect.ImmutableList<E>,ListBuilder.ImmutableListBuilder<E>>