public class Interval extends Object implements Intervalable
| Constructor and Description |
|---|
Interval(int start,
int end) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Object o) |
boolean |
equals(Object o) |
int |
getEnd() |
int |
getStart() |
int |
hashCode() |
boolean |
overlapsWith(int point) |
boolean |
overlapsWith(Interval other) |
int |
size() |
String |
toString() |
public int getStart()
getStart in interface Intervalablepublic int getEnd()
getEnd in interface Intervalablepublic int size()
size in interface Intervalablepublic boolean overlapsWith(Interval other)
public boolean overlapsWith(int point)
public int compareTo(Object o)
compareTo in interface ComparableCopyright © 2014-2015 42 BV. All Rights Reserved.