package com.github.davidmoten.rtree;

import java.util.List;

import com.github.davidmoten.rtree.geometry.Geometry;
import com.github.davidmoten.rtree.geometry.HasGeometry;
import com.github.davidmoten.rtree.internal.NodeAndEntries;

import rx.Subscriber;
import rx.functions.Func1;

public interface Node<T, S extends Geometry> extends HasGeometry {

    List<Node<T, S>> add(Entry<? extends T, ? extends S> entry);

    NodeAndEntries<T, S> delete(Entry<? extends T, ? extends S> entry, boolean all);

    /**
     * Run when a search requests Long.MAX_VALUE results. This is the
     * no-backpressure fast path.
     * 
     * @param condition
     * @param subscriber
     */
    void searchWithoutBackpressure(Func1<? super Geometry, Boolean> condition,
            Subscriber<? super Entry<T, S>> subscriber);

    int count();

    Context<T, S> context();

}

@@ -636,41 +636,146 @@
 am c
-ondition%0A     * @param subscriber
+riterion function that returns true if the geometry is a search match%0A     * @param subscriber the subscriber to report search findings to
 %0A   
@@ -852,13 +852,13 @@
 n%3E c
-ondit
+riter
 ion,

add javadoc