Package org.eclipse.jgit.diff
Class EditList
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- java.util.ArrayList<Edit>
-
- org.eclipse.jgit.diff.EditList
-
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EditList
singleton(Edit edit)
Construct an edit list containing a single edit.java.lang.String
toString()
-
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
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 Detail
-
singleton
public static EditList singleton(Edit edit)
Construct an edit list containing a single edit.- Parameters:
edit
- the edit to return in the list.- Returns:
- list containing only
edit
.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.util.AbstractCollection<Edit>
-
-