E
- the type of elements that are compared to produce the first-level diffF
- the type of sub-elements that are compared to produce the second-level diffpublic class UnifiedDiffElement<E,F> extends Object
Modifier and Type | Class and Description |
---|---|
static class |
UnifiedDiffElement.Type
The possible types of elements you can find within a unified diff.
|
Constructor and Description |
---|
UnifiedDiffElement(int index,
UnifiedDiffElement.Type type,
E value)
Creates a new element in a unified diff.
|
Modifier and Type | Method and Description |
---|---|
List<InlineDiffChunk<F>> |
getChunks() |
int |
getIndex() |
UnifiedDiffElement.Type |
getType() |
E |
getValue() |
boolean |
isAdded() |
boolean |
isDeleted() |
void |
setChunks(List<InlineDiffChunk<F>> chunks)
Sets the list of chunks of sub-elements that form this element.
|
String |
toString() |
public UnifiedDiffElement(int index, UnifiedDiffElement.Type type, E value)
index
- the element indextype
- the element typevalue
- the wrapped elementpublic int getIndex()
public UnifiedDiffElement.Type getType()
public E getValue()
public List<InlineDiffChunk<F>> getChunks()
public void setChunks(List<InlineDiffChunk<F>> chunks)
chunks
- the list of chunkspublic boolean isAdded()
true
if this element was added, false
otherwisepublic boolean isDeleted()
true
if this element was deleted, false
otherwiseCopyright © 2004–2016 XWiki. All rights reserved.