E
- the type of elements that form a chunkpublic class InlineDiffChunk<E> extends Object
Modifier and Type | Class and Description |
---|---|
static class |
InlineDiffChunk.Type
The possible types of chunks you can find within an in-line diff.
|
Constructor and Description |
---|
InlineDiffChunk(InlineDiffChunk.Type type,
List<E> elements)
Creates a new chunk with the specified type and elements.
|
Modifier and Type | Method and Description |
---|---|
List<E> |
getElements() |
InlineDiffChunk.Type |
getType() |
boolean |
isAdded() |
boolean |
isDeleted() |
boolean |
isUnmodified() |
String |
toString() |
public InlineDiffChunk(InlineDiffChunk.Type type, List<E> elements)
type
- the chunk typeelements
- the list of elements that form the chunkpublic InlineDiffChunk.Type getType()
public boolean isAdded()
true
if this chunk was added, false
otherwisepublic boolean isDeleted()
true
if this chunk was deleted, false
otherwisepublic boolean isUnmodified()
true
if this chunk was left unmodified, false
otherwiseCopyright © 2004–2014 XWiki. All rights reserved.