NodeProxy p; ArraySet result = new ArraySet(5); for (Iterator i = iterator(); i.hasNext();) { p = (NodeProxy) i.next(); if (p.doc.docId == doc.docId && p.gid >= lower && p.gid <= upper) result.add(p); } return result;
throw new RuntimeException( "getRange is not valid for class " + getClass().getName());
	public NodeSet getRange(DocumentImpl doc, long lower, long upper) {		NodeProxy p;		ArraySet result = new ArraySet(5);		for (Iterator i = iterator(); i.hasNext();) {			p = (NodeProxy) i.next();			if (p.doc.docId == doc.docId && p.gid >= lower && p.gid <= upper)				result.add(p);		}		return result;	}