private V region;
+ /*
+ * null, or an object holding contained subregions of this nodes region
+ */
private NCList<V> subregions;
/**
{
region = entry;
subregions = newNCList;
- // size = 1 + newNCList.size();
+ size = 1 + newNCList.getSize();
}
/**
* @param to
* @param result
*/
- void addOverlaps(long from, long to, List<V> result)
+ void findOverlaps(long from, long to, List<V> result)
{
if (region.getBegin() <= to && region.getEnd() >= from)
{
}
return subregions.isValid(getStart(), getEnd());
}
+
+ /**
+ * Adds all contained entries to the given list
+ *
+ * @param entries
+ */
+ void getEntries(List<V> entries)
+ {
+ entries.add(region);
+ if (subregions != null)
+ {
+ subregions.getEntries(entries);
+ }
+ }
}