Package org.webcat.diff
Class PatchList<T>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- java.util.AbstractSequentialList<E>
-
- java.util.LinkedList<Patch<T>>
-
- org.webcat.diff.PatchList<T>
-
- 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>>
public class PatchList<T> extends LinkedList<Patch<T>>
A linked list ofPatch
objects, providing additional utility methods as well.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.AbstractList
modCount
-
-
Constructor Summary
Constructors Constructor Description PatchList()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PatchList<T>
clone()
Given an array of patches, return another array that is identical.String
toString()
Take a list of patches and return a textual representation.-
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
-
-
-
-
Method Detail
-
clone
public PatchList<T> clone()
Given an array of patches, return another array that is identical.- Overrides:
clone
in classLinkedList<Patch<T>>
- Returns:
- Array of patch objects.
-
toString
public String toString()
Take a list of patches and return a textual representation.- Overrides:
toString
in classAbstractCollection<Patch<T>>
- Returns:
- Text representation of patches.
-
-