public static < K , V extends K > Cursor < K , V > slice ( Object [ ] btree , Comparator < K > comparator , K start , boolean startInclusive , K end , boolean endInclusive , boolean forwards ) { Cursor < K , V > r = new Cursor <> ( ) ; r . reset ( btree , comparator , start , startInclusive , end , endInclusive , forwards ) ; return r ; }
Returns an Iterator over a sub - range of the tree