Share Pastebin
Guest
Public paste!

Untitled

By: a guest | Mar 15th, 2010 | Syntax: Java | Size: 0.87 KB | Hits: 33 | Expires: Never
Copy text to clipboard
  1. if(q.contains(s)){
  2.                         for(int i = 0; i < Llist.size(); i++){
  3.                                 returnList.add(i, Llist.get(i));
  4.                         }
  5.                         IntervalTreeNode tempr = rsub;
  6.                         float sr = tempr.splitValue;
  7.                         while(tempr!=null){
  8.                                 if(q.contains(sr)){
  9.                                         for(int i = 0; i<tempr.rightIntervals.size(); i++){
  10.                                                 returnList.add(returnList.size(), tempr.rightIntervals.get(i));
  11.                                         }
  12.                                 }
  13.                                 else if(sr < q.leftEndPoint){
  14.                                         tempr = tempr.rightChild;
  15.                                 }
  16.                                 else{
  17.                                         tempr = tempr.leftChild;
  18.                                 }
  19.                         }
  20.                         IntervalTreeNode templ = lsub;
  21.                         float sl = templ.splitValue;
  22.                         while(templ!=null){
  23.                                 if(q.contains(sl)){
  24.                                         for(int i = 0; i<templ.leftIntervals.size(); i++){
  25.                                                 returnList.add(returnList.size(), templ.leftIntervals.get(i));
  26.                                         }
  27.                                 }
  28.                                 else if(sl < q.leftEndPoint){
  29.                                         templ = templ.rightChild;
  30.                                 }
  31.                                 else{
  32.                                         templ = templ.leftChild;
  33.                                 }
  34.                         }
  35.                 }