public static interface LongImmutableArray.Builder
LongImmutableArray. The builder can be appended
with values using the append(long)-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 longs as well as a very small amount.
| Modifier and Type | Method and Description |
|---|---|
LongImmutableArray.Builder |
append(long value)
Append an value to the builder.
|
LongImmutableArray |
build()
Builds the array.
|
LongImmutableArray.Builder append(long value)
value - the value to appendLongImmutableArray build()
Copyright © 2016. All rights reserved.