Lists.UnmodifiableListBuilder

public static class Lists.UnmodifiableListBuilder<E> extends Object

Builder for an unmodifiable list.

Constructors

Name Description
public UnmodifiableListBuilder()

Methods

add

public UnmodifiableListBuilder<E> add(E arg)

Appends the specified element to the end of this list.

Parameters

Name Description
E arg

element to be appended to this list

ReturnValue

Name Description
UnmodifiableListBuilder<E>

build

public List<E> build()

Returns an unmodifiable list of elements.

ReturnValue

Name Description
List<E>