| Modifier and Type | Class and Description |
|---|---|
| public static interface | AppendOnlyLinkedArrayList.NonThrowingPredicate<
the value type T>Predicate interface suppressing the exception. |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final int | |
| pack-priv final Object[] | |
| pack-priv int | |
| pack-priv Object[] |
| Access | Constructor and Description |
|---|---|
| public | AppendOnlyLinkedArrayList(int
the capacity of each link capacity)Constructs an empty list with a per-link capacity. |
| Modifier and Type | Method and Description |
|---|---|
| public < the target type U> boolean | Returns: true if a terminal event has been reachedthe subscriber to emit the events to subscriber)Interprets the contents as NotificationLite objects and calls the appropriate Subscriber method. |
| public < the target type U> boolean | |
| public void | |
| public void | forEachWhile(AppendOnlyLinkedArrayList.
the consumer of values that returns true if the forEach should terminate consumerLoops over all elements of the array until a null element is encountered or the given predicate returns true. |
| public < the extra state type S> void | forEachWhile(S
the extra state passed into the consumer state, BiPredicate<? super S, ? super T> the consumer of values that returns true if the forEach should terminate consumer)Loops over all elements of the array until a null element is encountered or the given predicate returns true. |
| public void |
| capacity | back to summary |
|---|---|
| pack-priv final int capacity | |
| head | back to summary |
|---|---|
| pack-priv final Object[] head | |
| offset | back to summary |
|---|---|
| pack-priv int offset | |
| tail | back to summary |
|---|---|
| pack-priv Object[] tail | |
| AppendOnlyLinkedArrayList | back to summary |
|---|---|
| public AppendOnlyLinkedArrayList(int capacity) Constructs an empty list with a per-link capacity.
| |
| accept | back to summary |
|---|---|
| public <U> boolean accept(Subscriber<? super U> subscriber) Interprets the contents as NotificationLite objects and calls the appropriate Subscriber method.
| |
| accept | back to summary |
|---|---|
| public <U> boolean accept(Observer<? super U> observer) Interprets the contents as NotificationLite objects and calls the appropriate Observer method.
| |
| add | back to summary |
|---|---|
| public void add(T value) Append a non-null value to the list. Don't add null to the list!
| |
| forEachWhile | back to summary |
|---|---|
| public void forEachWhile(AppendOnlyLinkedArrayList. Loops over all elements of the array until a null element is encountered or the given predicate returns true.
| |
| forEachWhile | back to summary |
|---|---|
| public <S> void forEachWhile(S state, BiPredicate<? super S, ? super T> consumer) throws Exception Loops over all elements of the array until a null element is encountered or the given predicate returns true.
| |
| setFirst | back to summary |
|---|---|
| public void setFirst(T value) Set a value as the first element of the list.
| |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | test(T
the value t)Redeclares io. |
| test | back to summary |
|---|---|
| public boolean test(T t) Redeclares io. Doc from io. Test the given input value and return a boolean.
| |