Package org.webcat.diff
Class PatchList<T>
java.lang.Object
- Type Parameters:
T
- the type of item in the lists
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable<Patch<T>>
,Collection<Patch<T>>
,Deque<Patch<T>>
,List<Patch<T>>
,Queue<Patch<T>>
A linked list of
Patch
objects, providing additional utility methods
as well.- See Also:
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.util.LinkedList
add, add, addAll, addAll, addFirst, addLast, clear, contains, descendingIterator, element, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, remove, remove, remove, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, set, size, spliterator, toArray, toArray
Methods inherited from class java.util.AbstractSequentialList
iterator
Methods inherited from class java.util.AbstractList
equals, hashCode, listIterator, removeRange, subList
Methods inherited from class java.util.AbstractCollection
containsAll, isEmpty, removeAll, retainAll
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface java.util.List
containsAll, equals, hashCode, isEmpty, iterator, listIterator, removeAll, replaceAll, retainAll, sort, subList
-
Constructor Details
-
PatchList
public PatchList()
-
-
Method Details
-
clone
Given an array of patches, return another array that is identical.- Overrides:
clone
in classLinkedList<Patch<T>>
- Returns:
- Array of patch objects.
-
toString
Take a list of patches and return a textual representation.- Overrides:
toString
in classAbstractCollection<Patch<T>>
- Returns:
- Text representation of patches.
-