public class Range extends Object
Constructor and Description |
---|
Range(int start,
int size)
Creates a new interval having the specified start and size.
|
Modifier and Type | Method and Description |
---|---|
int |
getAbsoluteSize() |
int |
getAbsoluteStart() |
int |
getSize() |
int |
getStart() |
List<String> |
subList(List<String> list)
Copy the given list and return a (smart) subList corresponding to this range.
|
public Range(int start, int size)
start
- The start of the intervalsize
- The size of the intervalpublic int getStart()
start
public int getAbsoluteStart()
public int getSize()
size
public int getAbsoluteSize()
public List<String> subList(List<String> list)
Considering this 9 elements list : [0, 1, 2, 3, 4, 5, 6, 7, 8]
list
- the list from which the sublist will be extractedCopyright © 2004–2022 XWiki. All rights reserved.