public class IntervalTree
extends java.lang.Object
Constructor and Description |
---|
IntervalTree() |
Modifier and Type | Method and Description |
---|---|
java.util.List<Interval> |
findOverlapping(Interval interval) |
java.util.List<Interval> |
getIntervals()
Return all intervals in tree.
|
int |
getSize()
The estimated size of the tree.
|
void |
insert(Interval interval) |
boolean |
isValid()
Test code: make sure that the tree has all the properties
defined by Red Black trees and interval trees
o.
|
int |
size() |
java.lang.String |
toString() |
public void insert(Interval interval)
public int getSize()
size()
public java.util.List<Interval> findOverlapping(Interval interval)
interval
- public java.lang.String toString()
toString
in class java.lang.Object
public java.util.List<Interval> getIntervals()
public int size()
getSize()
public boolean isValid()