int
339340341342343344345346347348349
float furthestDistanceSq = furthestDistance * furthestDistance; while (parents.size() > 0) { Node n = getNode(parents.peek()); int startIndex = parentsEntry.peek() + 1; if (!n.isLeaf()) { // go through every entry in the index node to check // if it could contain an entry closer than the farthest entry // currently stored.
470471472473474475476477478479480
// TODO: possible shortcut here - could test for intersection with the // MBR of the root node. If no intersection, return immediately. while (parents.size() > 0) { Node n = getNode(parents.peek()); int startIndex = parentsEntry.peek() + 1; if (!n.isLeaf()) { // go through every entry in the index node to check // if it intersects the passed rectangle. If so, it // could contain entries that are contained.
7677787980818283848586
stack.push( 10 ); assertEquals( 1, stack.size() ); assertEquals( 10, stack.peek() ); assertEquals( 1, stack.size() ); assertEquals( 10, stack.peek() ); assertEquals( 1, stack.size() ); assertEquals( 10, stack.pop() );
7879808182838485868788
assertEquals( 1, stack.size() ); assertEquals( 10, stack.peek() ); assertEquals( 1, stack.size() ); assertEquals( 10, stack.peek() ); assertEquals( 1, stack.size() ); assertEquals( 10, stack.pop() ); assertEquals( 0, stack.size() );