Class EditList

All Implemented Interfaces:
Serializable, Cloneable, Iterable<Edit>, Collection<Edit>, List<Edit>, RandomAccess

public class EditList extends ArrayList<Edit>
Specialized list of Edits in a document.
See Also:
  • Field Details

  • 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

      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 String toString()
      Overrides:
      toString in class AbstractCollection<Edit>