Top Description Fields Constructors Methods
org.eclipse.jgit.diff

public Class EditList

extends ArrayList<Edit>
Class Inheritance
Imports
java.util.ArrayList

Specialized list of org.eclipse.jgit.diff.Edits in a document.

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public
EditList()

Create a new, empty edit list.

public
EditList(int
the initial capacity of the edit list. If additional edits are added to the list, it will be grown to support them.
capacity
)

Create an empty edit list with the specified capacity.

Method Summary

Modifier and TypeMethod and Description
public static EditList

Returns:

list containing only edit.
singleton
(Edit
the edit to return in the list.
edit
)

Construct an edit list containing a single edit.

public String
toString()

Overrides java.util.AbstractCollection.toString.

Returns a string representation of this collection.

Inherited from java.util.ArrayList:
addaddaddAlladdAlladdFirstaddLastclearclonecontainsensureCapacityequalsforEachgetgetFirstgetLasthashCodeindexOfisEmptyiteratorlastIndexOflistIteratorlistIteratorremoveremoveremoveAllremoveFirstremoveIfremoveLastremoveRangereplaceAllretainAllsetsizesortspliteratorsubListtoArraytoArraytrimToSize

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.util.ArrayList.serialVersionUID.

Constructor Detail

EditListback to summary
public EditList()

Create a new, empty edit list.

EditListback to summary
public EditList(int capacity)

Create an empty edit list with the specified capacity.

Parameters
capacity:int

the initial capacity of the edit list. If additional edits are added to the list, it will be grown to support them.

Method Detail

singletonback to summary
public static EditList singleton(Edit edit)

Construct an edit list containing a single edit.

Parameters
edit:Edit

the edit to return in the list.

Returns:EditList

list containing only edit.

toStringback to summary
public String toString()

Overrides java.util.AbstractCollection.toString.

Doc from java.util.AbstractCollection.toString.

Returns a string representation of this collection. The string representation consists of a list of the collection's elements in the order they are returned by its iterator, enclosed in square brackets ("[]"). Adjacent elements are separated by the characters ", " (comma and space). Elements are converted to strings as by String#valueOf(Object).

Returns:String

a string representation of this collection

Annotations
@Override