public class Slot extends Object implements Comparable<Slot>
Constructor and Description |
---|
Slot(double start,
double end) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Slot other) |
boolean |
contains(double v) |
double |
getEnd() |
double |
getStart() |
Slot |
intersect(double otherStart,
double otherEnd) |
boolean |
intersect(Slot other) |
Slot |
merge(Slot other) |
double |
size() |
String |
toString() |
public double getStart()
public double getEnd()
public double size()
public boolean contains(double v)
public boolean intersect(Slot other)
public Slot intersect(double otherStart, double otherEnd)
public int compareTo(Slot other)
compareTo
in interface Comparable<Slot>
Copyright © 2016. All Rights Reserved.