public class QuadBuckets<T extends OsmPrimitive> extends Object implements Collection<T>
Modifier and Type | Class and Description |
---|---|
(package private) static class |
QuadBuckets.QBLevel<T extends OsmPrimitive> |
(package private) class |
QuadBuckets.QuadBucketIterator |
Modifier and Type | Field and Description |
---|---|
private static boolean |
consistency_testing |
static int |
MAX_OBJECTS_PER_LEVEL |
private static int |
NE_INDEX |
private static int |
NW_INDEX |
private QuadBuckets.QBLevel<T> |
root |
private static int |
SE_INDEX |
private QuadBuckets.QBLevel<T> |
search_cache |
private int |
size |
private static int |
SW_INDEX |
Constructor and Description |
---|
QuadBuckets()
Constructs a new
QuadBuckets . |
Modifier and Type | Method and Description |
---|---|
(package private) static void |
abort(String s) |
boolean |
add(T n) |
boolean |
addAll(Collection<? extends T> objects) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> objects) |
boolean |
isEmpty() |
Iterator<T> |
iterator() |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> objects) |
boolean |
retainAll(Collection<?> objects) |
List<T> |
search(BBox search_bbox) |
int |
size() |
Object[] |
toArray() |
<A> A[] |
toArray(A[] template) |
ArrayList<T> |
toArrayList() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
equals, hashCode
private static final boolean consistency_testing
private static final int NW_INDEX
private static final int NE_INDEX
private static final int SE_INDEX
private static final int SW_INDEX
public static final int MAX_OBJECTS_PER_LEVEL
private QuadBuckets.QBLevel<T extends OsmPrimitive> root
private QuadBuckets.QBLevel<T extends OsmPrimitive> search_cache
private int size
public QuadBuckets()
QuadBuckets
.public final void clear()
clear
in interface Collection<T extends OsmPrimitive>
public boolean add(T n)
add
in interface Collection<T extends OsmPrimitive>
public boolean retainAll(Collection<?> objects)
retainAll
in interface Collection<T extends OsmPrimitive>
public boolean removeAll(Collection<?> objects)
removeAll
in interface Collection<T extends OsmPrimitive>
public boolean addAll(Collection<? extends T> objects)
addAll
in interface Collection<T extends OsmPrimitive>
public boolean containsAll(Collection<?> objects)
containsAll
in interface Collection<T extends OsmPrimitive>
public boolean remove(Object o)
remove
in interface Collection<T extends OsmPrimitive>
public boolean contains(Object o)
contains
in interface Collection<T extends OsmPrimitive>
public ArrayList<T> toArrayList()
public Object[] toArray()
toArray
in interface Collection<T extends OsmPrimitive>
public <A> A[] toArray(A[] template)
toArray
in interface Collection<T extends OsmPrimitive>
public Iterator<T> iterator()
iterator
in interface Iterable<T extends OsmPrimitive>
iterator
in interface Collection<T extends OsmPrimitive>
public int size()
size
in interface Collection<T extends OsmPrimitive>
public boolean isEmpty()
isEmpty
in interface Collection<T extends OsmPrimitive>