public static class MutableList.Builder<V>
extends java.lang.Object
ImMutableList.Builder
Constructor and Description |
---|
MutableList.Builder() |
Modifier and Type | Method and Description |
---|---|
MutableList.Builder<V> |
add(V value) |
MutableList.Builder<V> |
add(V value1,
V value2,
V... values) |
MutableList.Builder<V> |
addAll(java.lang.Iterable<? extends V> iterable) |
MutableList.Builder<V> |
addAll(java.util.Iterator<? extends V> iter) |
MutableList.Builder<V> |
addAll(V[] vals) |
MutableList.Builder<V> |
addLists(java.lang.Iterable<? extends V>... items) |
MutableList<V> |
build() |
com.google.common.collect.ImmutableList<V> |
buildImmutable() |
MutableList.Builder<V> |
remove(V val) |
MutableList.Builder<V> |
removeAll(java.lang.Iterable<? extends V> iterable) |
public MutableList.Builder<V> add(V value)
public MutableList.Builder<V> add(V value1, V value2, V... values)
public MutableList.Builder<V> remove(V val)
public MutableList.Builder<V> addAll(java.lang.Iterable<? extends V> iterable)
public MutableList.Builder<V> addAll(java.util.Iterator<? extends V> iter)
public MutableList.Builder<V> addAll(V[] vals)
public MutableList.Builder<V> removeAll(java.lang.Iterable<? extends V> iterable)
public MutableList<V> build()
public com.google.common.collect.ImmutableList<V> buildImmutable()
public MutableList.Builder<V> addLists(java.lang.Iterable<? extends V>... items)