/** * Removes a point from given bucket. * * @param bucket the bucket number. * @param point the index of point. * @return true if the point was in the bucket. */ boolean remove(int bucket, int point) { for (BucketEntry b : entry) { if (b.bucket == bucket) { return b.remove(point); } } return false; }