public static interface ImmutableList.Builder<T>
| Modifier and Type | Method and Description |
|---|---|
ImmutableList.Builder<T> |
add(T item) |
ImmutableList.Builder<T> |
addAll(Iterable<? extends T> items) |
ImmutableList.Builder<T> |
addAll(T... items) |
List<T> |
build() |
List<T> |
build(Comparator<T> comparator)
Sort the elements before the immutable list is built.
|
ImmutableList.Builder<T> add(T item)
ImmutableList.Builder<T> addAll(Iterable<? extends T> items)
ImmutableList.Builder<T> addAll(T... items)
List<T> build(Comparator<T> comparator)
comparator - Copyright © 2017. All rights reserved.