public interface BooleanImmutableArray
To create a new instance of this interface, use the builder pattern initiated
with the builder() method. The actual implementation that is used
will depend on the data that is passed to the builder. After the instance has
been built, it will be immutable.
| Modifier and Type | Interface and Description |
|---|---|
static interface |
BooleanImmutableArray.Builder
A builder for a
BooleanImmutableArray. |
| Modifier and Type | Method and Description |
|---|---|
static BooleanImmutableArray.Builder |
builder()
Creates a new builder.
|
boolean |
getAsBoolean(long index)
Returns the value located at the specified index in the array.
|
long |
length()
Returns the length of the array (the number of booleans that can safely
be retrieved using the
getAsBoolean(long) method). |
boolean getAsBoolean(long index)
index - the indexlong length()
getAsBoolean(long) method).static BooleanImmutableArray.Builder builder()
BooleanImmutableArray.Builder.build() method is finally invoked.
The builder should not be used after the BooleanImmutableArray.Builder.build()-method
has been called.
Copyright © 2016. All rights reserved.