i2bplustree
Version:
A package to implement the Improved Interval B+ tree, in TypeScript
17 lines (16 loc) • 459 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
const Interval_1 = require("./Interval");
/**
* Interval that stores data instead of other Intervals
*/
class FlatInterval extends Interval_1.Interval {
equals(int) {
return this.upperBound == int.getUpperBound() &&
this.lowerBound == int.getLowerBound();
}
getOriginalInterval() {
return this;
}
}
exports.FlatInterval = FlatInterval;
;