Package com.day.util.diff
Class Range
java.lang.Object
com.day.util.diff.Range
Specifies a range in a document
-
Field Details
-
doc
the document this range points to -
low
public final int lowthe low line of this range -
high
public final int highthe high line of this range. actually points to the line after the one included in this range.
-
-
Constructor Details
-
Range
Creates a new range- Parameters:
doc
- the documentlow
- the low linehigh
- the high line
-
-
Method Details
-
len
public int len()Returns the length of this range- Returns:
- the length.
-
toString
Returns a debug string -
toRangeString
Returns a string suitable for inclusion in a diff output (line number is incremented by one).- Returns:
- a string for output
-