The `build()` method of the `ImmutableList.Builder` class in Java, part of the `com.google.common.collect` package, is used to create an immutable list based on the elements added to the builder. This method returns an `ImmutableList` object that is effectively immutable and cannot be modified. The `build()` method provides a convenient way to obtain a finalized immutable list from the elements added to the builder.
Java ImmutableList.Builder.build - 30 examples found. These are the top rated real world Java examples of com.google.common.collect.ImmutableList.Builder.build extracted from open source projects. You can rate examples to help us improve the quality of examples.