|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
org.eclipse.jgit.revwalk.RevObjectList<E>
E - type of subclass of RevObject the list is storing.public class RevObjectList<E extends RevObject>
An ordered list of RevObject subclasses.
| Nested Class Summary | |
|---|---|
protected static class |
RevObjectList.Block
One level of contents, either an intermediate level or a leaf level. |
| Field Summary | |
|---|---|
protected RevObjectList.Block |
contents
Items stored in this list. |
protected int |
size
Current number of elements in the list. |
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
RevObjectList()
Create an empty object list. |
|
| Method Summary | |
|---|---|
void |
add(int index,
E element)
|
void |
clear()
|
E |
get(int index)
|
E |
set(int index,
E element)
|
int |
size()
|
| Methods inherited from class java.util.AbstractList |
|---|
add, addAll, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, subList |
| Methods inherited from class java.util.AbstractCollection |
|---|
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
public RevObjectList()
| Method Detail |
|---|
public void add(int index,
E element)
add in interface java.util.List<E extends RevObject>add in class java.util.AbstractList<E extends RevObject>
public E set(int index,
E element)
set in interface java.util.List<E extends RevObject>set in class java.util.AbstractList<E extends RevObject>public E get(int index)
get in interface java.util.List<E extends RevObject>get in class java.util.AbstractList<E extends RevObject>public int size()
size in interface java.util.Collection<E extends RevObject>size in interface java.util.List<E extends RevObject>size in class java.util.AbstractCollection<E extends RevObject>public void clear()
clear in interface java.util.Collection<E extends RevObject>clear in interface java.util.List<E extends RevObject>clear in class java.util.AbstractList<E extends RevObject>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||