@Test public void testNodeConstruction1() throws IntervalTreeException, JannovarException { ArrayList<Interval<String>> lst = createIntervalList1(); Node<String> n = new Node<String>(lst, new LeftComparator(), new RightComparator()); Integer m = n.getMedian(); Assert.assertEquals((Integer) 19, m); }
public int getMedian() { return this.median; }
Node { public int getMedian() { return this.median; } }
Node { public int getMedian() { return this.median; } private  Node();  Node(List<Interval<T>> intervals, LeftComparator leftcomp2, RightComparator rightcomp2); }
Node { public int getMedian() { return this.median; } private  Node();  Node(List<Interval<T>> intervals, LeftComparator leftcomp2, RightComparator rightcomp2); int getMedian(); Interval<T> getLeftmostItem(); Interval<T> getRightmostItem(); boolean isEmpty(); boolean hasInterval(); Node<T> getRightmostDescendentOfLeftChild(); Node<T> getLeftmostDescendentOfRightChild(); Node<T> getLeft(); Node<T> getRight(); void debugPrint(String type, int level); @Override String toString(); }
Node { public int getMedian() { return this.median; } private  Node();  Node(List<Interval<T>> intervals, LeftComparator leftcomp2, RightComparator rightcomp2); int getMedian(); Interval<T> getLeftmostItem(); Interval<T> getRightmostItem(); boolean isEmpty(); boolean hasInterval(); Node<T> getRightmostDescendentOfLeftChild(); Node<T> getLeftmostDescendentOfRightChild(); Node<T> getLeft(); Node<T> getRight(); void debugPrint(String type, int level); @Override String toString(); public List<Interval<T>> leftorder; public List<Interval<T>> rightorder; }