E
- type of subclass of RevObject the list is storing.Iterable<E>
, Collection<E>
, List<E>
RevCommitList
public class RevObjectList<E extends RevObject> extends AbstractList<E>
RevObject
subclasses.Modifier and Type | Class | Description |
---|---|---|
protected static class |
RevObjectList.Block |
One level of contents, either an intermediate level or a leaf level.
|
Modifier and Type | Field | Description |
---|---|---|
protected RevObjectList.Block |
contents |
Items stored in this list.
|
protected int |
size |
Current number of elements in the list.
|
modCount
Constructor | Description |
---|---|
RevObjectList() |
Create an empty object list.
|
Modifier and Type | Method | Description |
---|---|---|
void |
add(int index,
E element) |
|
void |
clear() |
|
E |
get(int index) |
|
E |
set(int index,
E element) |
|
int |
size() |
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
add, addAll, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, subList
parallelStream, removeIf, stream
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
protected RevObjectList.Block contents
If RevObjectList.Block.shift
= 0 this block holds the list elements; otherwise
it holds pointers to other RevObjectList.Block
instances which use a shift that
is BLOCK_SHIFT
smaller.
protected int size
Copyright © 2018. All rights reserved.