Package de.loskutov.anyedit.util
Class TextReplaceResultSet
- java.lang.Object
-
- de.loskutov.anyedit.util.TextReplaceResultSet
-
public final class TextReplaceResultSet extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<LineReplaceResult>
delegate
private java.lang.Exception
exception
private int
startLine
private int
stopLine
-
Constructor Summary
Constructors Constructor Description TextReplaceResultSet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
add(LineReplaceResult o)
boolean
areResultsChanged()
void
clear()
LineReplaceResult
get(int index)
java.lang.Exception
getException()
int
getNumberOfLines()
int
getStartLine()
int
getStopLine()
void
setException(java.lang.Exception exception)
void
setStartLine(int startLine)
void
setStopLine(int stopLine)
int
size()
-
-
-
Field Detail
-
delegate
private final java.util.List<LineReplaceResult> delegate
-
startLine
private int startLine
-
stopLine
private int stopLine
-
exception
private java.lang.Exception exception
-
-
Method Detail
-
add
public boolean add(LineReplaceResult o)
- Parameters:
o
- could be null value, if the line is not changed
-
get
public LineReplaceResult get(int index)
- Parameters:
index
- line index in the document- Returns:
- null if index is out of range
-
areResultsChanged
public boolean areResultsChanged()
-
size
public int size()
-
getStartLine
public int getStartLine()
- Returns:
- Returns the startLine.
-
setStartLine
public void setStartLine(int startLine)
- Parameters:
startLine
- The startLine to set.
-
getStopLine
public int getStopLine()
- Returns:
- Returns the stopLine - last changed line in result
-
setStopLine
public void setStopLine(int stopLine)
- Parameters:
stopLine
- The stopLine to set.
-
getNumberOfLines
public int getNumberOfLines()
-
clear
public void clear()
-
getException
public java.lang.Exception getException()
- Returns:
- exception which was thrown during writing the document, if any
-
setException
public void setException(java.lang.Exception exception)
- Parameters:
exception
- which was thrown during writing the document, if any
-
-