public static interface IntImmutableArray.Builder
IntImmutableArray. The builder can be appended
with values using the append(int)-method until it is finalized
using the build()-method. The backing implementation will be
decided once the array is built.
The implementation of Builder is intended to handle a very large
amount of integers as well as a very small amount.
| Modifier and Type | Method and Description |
|---|---|
IntImmutableArray.Builder |
append(int value)
Append an value to the builder.
|
IntImmutableArray |
build()
Builds the array.
|
IntImmutableArray.Builder append(int value)
value - the value to appendIntImmutableArray build()
Copyright © 2016. All rights reserved.