Constructor | Description |
---|---|
NodeBase() |
Modifier and Type | Method | Description |
---|---|---|
void |
add(java.lang.Object item) |
|
java.util.List |
addAllItems(java.util.List items) |
|
void |
addAllItemsFromOverlapping(Interval interval,
java.util.Collection resultItems) |
Adds items in the tree which potentially overlap the query interval
to the given collection.
|
java.util.List |
getItems() |
|
static int |
getSubnodeIndex(Interval interval,
double centre) |
Returns the index of the subnode that wholely contains the given interval.
|
boolean |
hasChildren() |
|
boolean |
hasItems() |
|
boolean |
isPrunable() |
|
boolean |
remove(Interval itemInterval,
java.lang.Object item) |
Removes a single item from this subtree.
|
public static int getSubnodeIndex(Interval interval, double centre)
public java.util.List getItems()
public void add(java.lang.Object item)
public java.util.List addAllItems(java.util.List items)
public void addAllItemsFromOverlapping(Interval interval, java.util.Collection resultItems)
interval
- a query interval, or nullresultItems
- the candidate items foundpublic boolean remove(Interval itemInterval, java.lang.Object item)
itemInterval
- the envelope containing the itemitem
- the item to removetrue
if the item was found and removedpublic boolean isPrunable()
public boolean hasChildren()
public boolean hasItems()
Copyright © 2018. All rights reserved.