Package org.eclipse.jgit.revwalk
Class RevObjectList<E extends RevObject>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- org.eclipse.jgit.revwalk.RevObjectList<E>
-
- Type Parameters:
E- type of subclass of RevObject the list is storing.
- All Implemented Interfaces:
java.lang.Iterable<E>,java.util.Collection<E>,java.util.List<E>
- Direct Known Subclasses:
RevCommitList
public class RevObjectList<E extends RevObject> extends java.util.AbstractList<E>An ordered list ofRevObjectsubclasses.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classRevObjectList.BlockOne level of contents, either an intermediate level or a leaf level.
-
Field Summary
Fields Modifier and Type Field Description (package private) static intBLOCK_SHIFT(package private) static intBLOCK_SIZEprotected RevObjectList.BlockcontentsItems stored in this list.protected intsizeCurrent number of elements in the list.
-
Constructor Summary
Constructors Constructor Description RevObjectList()Create an empty object list.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(int index, E element)voidclear()Eget(int index)Eset(int index, E element)intsize()-
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
-
-
-
-
Field Detail
-
BLOCK_SHIFT
static final int BLOCK_SHIFT
- See Also:
- Constant Field Values
-
BLOCK_SIZE
static final int BLOCK_SIZE
- See Also:
- Constant Field Values
-
contents
protected RevObjectList.Block contents
Items stored in this list.If
RevObjectList.Block.shift= 0 this block holds the list elements; otherwise it holds pointers to otherRevObjectList.Blockinstances which use a shift that isBLOCK_SHIFTsmaller.
-
size
protected int size
Current number of elements in the list.
-
-