public class Range extends Object
Utility class to represent ranging information. Range instances are immutable.
Usage:
Range range = Range.of(0, 5);
Constructor and Description |
---|
Range(int startIndex,
int lastIndex) |
Modifier and Type | Method and Description |
---|---|
int |
getLastIndex() |
int |
getStartIndex() |
static Range |
of(int startIndex,
int lastIndex) |
public static Range of(int startIndex, int lastIndex)
public int getStartIndex()
public int getLastIndex()
Copyright © 2020 JBoss by Red Hat. All rights reserved.