/** * Tests whether the index contains any items. * This method does not build the index, * so items can still be inserted after it has been called. * * @return true if the index does not contain any items */ public boolean isEmpty() { if (! built) return itemBoundables.isEmpty(); return root.isEmpty(); }