public static < K , V > OMVRBTreeEntry < K , V > next ( final OMVRBTreeEntry < K , V > t ) { if ( t == null ) return null ; final OMVRBTreeEntry < K , V > succ ; if ( t . tree . pageIndex < t . getSize ( ) - 1 ) { // ITERATE INSIDE THE NODE succ = t ; t . tree . pageIndex ++ ; } else { // GET THE NEXT NODE succ = OMVRBTree . successor ( t ) ; t . tree . pageIndex = 0 ; } return succ ; }
Returns the next item of the tree .