public class Range
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected int |
end |
protected int |
start |
protected int |
step |
Constructor and Description |
---|
Range(int start,
int end,
int step) |
public int start()
public int end()
public int step()
public static Range union(Range r1, Range r2)
r1
- r2
- public static Range intersect(Range r1, Range r2)
r1
- r2
- public boolean contains(int value)
value
-