queryObj method

List queryObj(
  1. Object searchBounds
)

Also builds the tree, if necessary.

Implementation

List queryObj(Object searchBounds) {
  build();
  List matches = [];
  if (isEmpty()) {
    //Assert.isTrue(root.getBounds() == null);
    return matches;
  }
  if (getIntersectsOp().intersects(root.getBounds(), searchBounds)) {
    queryInternal(searchBounds, root, matches);
  }
  return matches;
}