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:
Iterable<E>,Collection<E>,List<E>
- Direct Known Subclasses:
RevCommitList
An ordered list of
RevObject subclasses.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classOne level of contents, either an intermediate level or a leaf level. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected RevObjectList.BlockItems stored in this list.protected intCurrent number of elements in the list.Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.util.AbstractList
add, addAll, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, subListMethods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
-
Field Details
-
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 sizeCurrent number of elements in the list.
-
-
Constructor Details
-
RevObjectList
public RevObjectList()Create an empty object list.
-
-
Method Details
-
add
-
set
-
get
-
size
public int size() -
clear
public void clear()
-