Package iota
Class NRange
java.lang.Object
iota.NRange
Representation of a range within an interval.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionNRange
(int start, int stop) Constructs an NRange given its start and stop positions. -
Method Summary
Modifier and TypeMethodDescriptionboolean
intersects
(NRange other) Returns true if this range intersects the other range, and false otherwise.toString()
Returns a string representation of this range.
-
Field Details
-
start
public int startStart position of the range. -
stop
public int stopEnd position of the range.
-
-
Constructor Details
-
NRange
public NRange(int start, int stop) Constructs an NRange given its start and stop positions.- Parameters:
start
- start position.stop
- stop position.
-
-
Method Details
-
intersects
Returns true if this range intersects the other range, and false otherwise.- Parameters:
other
- the other range.- Returns:
- true if this range intersects the other range, and false otherwise.
-
toString
Returns a string representation of this range.
-