T - type of primitivespublic class QuadBuckets<T extends IPrimitive> extends java.lang.Object implements java.util.Collection<T>
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
QuadBuckets.QBLevel<T extends IPrimitive> |
(package private) class |
QuadBuckets.QuadBucketIterator |
| Modifier and Type | Field and Description |
|---|---|
private static boolean |
CONSISTENCY_TESTING |
private java.util.Collection<T> |
invalidBBoxPrimitives |
private static int |
MAX_OBJECTS_PER_NODE |
private static byte |
NE_INDEX |
private static byte |
NW_INDEX |
private QuadBuckets.QBLevel<T> |
root |
private static byte |
SE_INDEX |
private QuadBuckets.QBLevel<T> |
searchCache |
private int |
size |
private static byte |
SW_INDEX |
| Constructor and Description |
|---|
QuadBuckets()
Constructs a new
QuadBuckets. |
| Modifier and Type | Method and Description |
|---|---|
(package private) static void |
abort(java.lang.String s) |
boolean |
add(T n) |
boolean |
addAll(java.util.Collection<? extends T> objects) |
void |
clear() |
boolean |
contains(java.lang.Object o) |
boolean |
containsAll(java.util.Collection<?> objects) |
boolean |
isEmpty() |
java.util.Iterator<T> |
iterator() |
boolean |
remove(java.lang.Object o) |
boolean |
removeAll(java.util.Collection<?> objects) |
boolean |
retainAll(java.util.Collection<?> objects) |
java.util.List<T> |
search(BBox searchBbox)
Search the tree for objects in the bbox (or crossing the bbox if they are ways)
|
int |
size() |
java.lang.Object[] |
toArray() |
<A> A[] |
toArray(A[] template) |
java.util.List<T> |
toList()
Converts to list.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprivate static final boolean CONSISTENCY_TESTING
private static final byte NW_INDEX
private static final byte NE_INDEX
private static final byte SE_INDEX
private static final byte SW_INDEX
private static final int MAX_OBJECTS_PER_NODE
private QuadBuckets.QBLevel<T extends IPrimitive> root
private QuadBuckets.QBLevel<T extends IPrimitive> searchCache
private int size
private java.util.Collection<T extends IPrimitive> invalidBBoxPrimitives
public QuadBuckets()
QuadBuckets.static void abort(java.lang.String s)
public final void clear()
clear in interface java.util.Collection<T extends IPrimitive>public boolean add(T n)
add in interface java.util.Collection<T extends IPrimitive>public boolean retainAll(java.util.Collection<?> objects)
retainAll in interface java.util.Collection<T extends IPrimitive>public boolean removeAll(java.util.Collection<?> objects)
removeAll in interface java.util.Collection<T extends IPrimitive>public boolean addAll(java.util.Collection<? extends T> objects)
addAll in interface java.util.Collection<T extends IPrimitive>public boolean containsAll(java.util.Collection<?> objects)
containsAll in interface java.util.Collection<T extends IPrimitive>public boolean remove(java.lang.Object o)
remove in interface java.util.Collection<T extends IPrimitive>public boolean contains(java.lang.Object o)
contains in interface java.util.Collection<T extends IPrimitive>public java.lang.Object[] toArray()
toArray in interface java.util.Collection<T extends IPrimitive>public <A> A[] toArray(A[] template)
toArray in interface java.util.Collection<T extends IPrimitive>public java.util.Iterator<T> iterator()
iterator in interface java.lang.Iterable<T extends IPrimitive>iterator in interface java.util.Collection<T extends IPrimitive>public int size()
size in interface java.util.Collection<T extends IPrimitive>public boolean isEmpty()
isEmpty in interface java.util.Collection<T extends IPrimitive>