AbstractList implementation which is used within our codec base classes.
| Modifier and Type | Class and Description |
|---|---|
| private static interface | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private Object[] | |
| private static final FastThreadLocal | |
| private boolean | |
| private static final CodecOutputList. | |
| private final CodecOutputList. | |
| private int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | add(Object
element to be appended to this list element)Overrides java. Implements java. |
| public void | add(int
index at which the specified element is to be inserted index, Object element to be inserted element)Overrides java. Implements java. |
| private void | |
| public void | clear()
Overrides java. Implements java. |
| private void | |
| public Object | get(int
index of the element to return index)Implements abstract java. Implements java. |
| pack-priv Object | |
| private void | |
| pack-priv boolean | |
| pack-priv static CodecOutputList | |
| pack-priv void | |
| public Object | remove(int
the index of the element to be removed index)Overrides java. Implements java. |
| public Object | set(int
index of the element to replace index, Object element to be stored at the specified position element)Overrides java. Implements java. |
| public int | size()
Implements abstract java. Implements java. |
| array | back to summary |
|---|---|
| private Object[] array | |
| CODEC_OUTPUT_LISTS_POOL | back to summary |
|---|---|
| private static final FastThreadLocal<CodecOutputList. | |
| insertSinceRecycled | back to summary |
|---|---|
| private boolean insertSinceRecycled | |
| NOOP_RECYCLER | back to summary |
|---|---|
| private static final CodecOutputList. | |
| recycler | back to summary |
|---|---|
| private final CodecOutputList. | |
| size | back to summary |
|---|---|
| private int size | |
| CodecOutputList | back to summary |
|---|---|
| private CodecOutputList(CodecOutputList. | |
| add | back to summary |
|---|---|
| public boolean add(Object element) Overrides java. Implements java. Doc from java. Appends the specified element to the end of this list (optional operation). Lists that support this operation may place limitations on what elements may be added to this list. In particular, some lists will refuse to add null elements, and others will impose restrictions on the type of elements that may be added. List classes should clearly specify in their documentation any restrictions on what elements may be added.
| |
| add | back to summary |
|---|---|
| public void add(int index, Object element) Overrides java. Implements java. Doc from java. Inserts the specified element at the specified position in this list (optional operation). Shifts the element currently at that position (if any) and any subsequent elements to the right (adds one to their indices).
| |
| checkIndex | back to summary |
|---|---|
| private void checkIndex(int index) | |
| clear | back to summary |
|---|---|
| public void clear() Overrides java. Implements java. Doc from java. Removes all of the elements from this list (optional operation). The list will be empty after this call returns.
| |
| expandArray | back to summary |
|---|---|
| private void expandArray() | |
| get | back to summary |
|---|---|
| public Object get(int index) Implements abstract java. Implements java. Doc from java. Returns the element at the specified position in this list.
| |
| getUnsafe | back to summary |
|---|---|
| pack-priv Object getUnsafe(int index) Returns the element on the given index. This operation will not do any range-checks and so is considered unsafe. | |
| insert | back to summary |
|---|---|
| private void insert(int index, Object element) | |
| insertSinceRecycled | back to summary |
|---|---|
| pack-priv boolean insertSinceRecycled() Returns | |
| newInstance | back to summary |
|---|---|
| pack-priv static CodecOutputList newInstance() | |
| recycle | back to summary |
|---|---|
| pack-priv void recycle() Recycle the array which will clear it and null out all entries in the internal storage. | |
| remove | back to summary |
|---|---|
| public Object remove(int index) Overrides java. Implements java. Doc from java. Removes the element at the specified position in this list (optional operation). Shifts any subsequent elements to the left (subtracts one from their indices). Returns the element that was removed from the list.
| |
| set | back to summary |
|---|---|
| public Object set(int index, Object element) Overrides java. Implements java. Doc from java. Replaces the element at the specified position in this list with the specified element (optional operation).
| |
| size | back to summary |
|---|---|
| public int size() Implements abstract java. Implements java. Doc from java. Returns the number of elements in this list. If this list contains
more than
| |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| recycle | back to summary |
|---|---|
| public void recycle(CodecOutputList codecOutputList) | |
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private int | |
| private final CodecOutputList[] | |
| private final int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public CodecOutputList | |
| public void | recycle(CodecOutputList codecOutputList)
Implements io. |
| count | back to summary |
|---|---|
| private int count | |
| currentIdx | back to summary |
|---|---|
| private int currentIdx | |
| elements | back to summary |
|---|---|
| private final CodecOutputList[] elements | |
| mask | back to summary |
|---|---|
| private final int mask | |
| CodecOutputLists | back to summary |
|---|---|
| pack-priv CodecOutputLists(int numElements) | |
| getOrCreate | back to summary |
|---|---|
| public CodecOutputList getOrCreate() | |
| recycle | back to summary |
|---|---|
| public void recycle(CodecOutputList codecOutputList) Implements io.
| |