public interface Range
Modifier and Type | Method and Description |
---|---|
int |
a0()
Lower end, inclusive.
|
int |
a1()
Higher end, exclusive
|
int |
m()
Middle point.
|
static Range |
of(int a0,
int a1) |
int |
size()
Size.
|
Range |
translate(int da) |
Range |
translate(int da0,
int da1) |
int a0()
int a1()
int size()
a1 - a0
int m()
(a0 + a1) / 2
Range translate(int da)
Range translate(int da0, int da1)
static Range of(int a0, int a1)