public static class MutableList.Builder<V>
extends java.lang.Object
ImMutableList.Builder
Constructor and Description |
---|
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> |
addIfNotNull(V value) |
MutableList.Builder<V> |
addLists(java.lang.Iterable<? extends V>... items) |
MutableList<V> |
build() |
<any> |
buildImmutable() |
MutableList.Builder<V> |
remove(V val) |
MutableList.Builder<V> |
removeAll(java.lang.Iterable<? extends V> iterable) |
MutableList.Builder<V> |
retainAll(java.lang.Iterable<? extends V> iterable) |
public MutableList.Builder<V> addIfNotNull(V value)
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.Builder<V> retainAll(java.lang.Iterable<? extends V> iterable)
public MutableList<V> build()
public <any> buildImmutable()
public MutableList.Builder<V> addLists(java.lang.Iterable<? extends V>... items)