public final class LineRanges extends Object
Constructor and Description |
---|
LineRanges() |
Modifier and Type | Method and Description |
---|---|
void |
add(LineRange line)
Adds a line range to the collection.
|
void |
clear()
Clears the collection.
|
boolean |
inRange(int line)
Detects if the given line number is within any of the line ranges.
|
Iterator<LineRange> |
iterator()
Returns an iterator for this collection.
|
LineRanges |
within(LineRanges ranges)
Gets the subset of LineRanges that are within all given ranges.
|
public void add(LineRange line)
line
- The line range to add to the collectionpublic Iterator<LineRange> iterator()
public boolean inRange(int line)
line
- The given line number to checkpublic LineRanges within(LineRanges ranges)
ranges
- The ranges to filter on.public void clear()
Copyright © 2011–2018 Qulice.com. All rights reserved.