+str #18807 add Source.range for Java DSL
This commit is contained in:
parent
18f1bc73fe
commit
9597b00f70
1 changed files with 2 additions and 1 deletions
|
|
@ -119,7 +119,8 @@ object Source {
|
|||
require(start <= end, "start must be less or equal than end")
|
||||
from(new util.AbstractList[Integer]() {
|
||||
override def get(index: Int) = start + index
|
||||
override def size() = end - start + 1
|
||||
override def size = end - start + 1
|
||||
override def toString = s"Range($start to $end)"
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue