Package org.eclipse.jgit.diff
Class EditList
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable<Edit>
,Collection<Edit>
,List<Edit>
,RandomAccess
Specialized list of
Edit
s in a document.- See Also:
-
Field Summary
FieldsFields inherited from class java.util.AbstractList
modCount
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
Methods inherited from class java.util.AbstractCollection
containsAll
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, stream, toArray
Methods inherited from interface java.util.List
containsAll
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
EditList
public EditList()Create a new, empty edit list. -
EditList
public EditList(int capacity) Create an empty edit list with the specified capacity.- Parameters:
capacity
- the initial capacity of the edit list. If additional edits are added to the list, it will be grown to support them.
-
-
Method Details
-
singleton
Construct an edit list containing a single edit.- Parameters:
edit
- the edit to return in the list.- Returns:
- list containing only
edit
.
-
toString
- Overrides:
toString
in classAbstractCollection<Edit>
-