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, toArrayMethods inherited from class java.util.AbstractSequentialList
iteratorMethods inherited from class java.util.AbstractList
equals, hashCode, listIterator, removeRange, subListMethods inherited from class java.util.AbstractCollection
containsAll, isEmpty, removeAll, retainAllMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods 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:
clonein classLinkedList<Patch<T>>- Returns:
- Array of patch objects.
-
toString
Take a list of patches and return a textual representation.- Overrides:
toStringin classAbstractCollection<Patch<T>>- Returns:
- Text representation of patches.
-