public abstract class CollectionRedBlackTree<T,N extends RedBlackNode<N>> extends BaseRedBlackTree<N> implements java.util.Collection<T>
Created by covers1624 on 17/5/21.
BaseRedBlackTree.Entriescount| Constructor and Description |
|---|
CollectionRedBlackTree() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addAll(java.util.Collection<? extends T> c) |
void |
clear() |
boolean |
containsAll(java.util.Collection<?> c) |
protected abstract T |
getValue(N node) |
boolean |
isEmpty() |
java.util.Iterator<T> |
iterator() |
protected abstract N |
newNode(T value) |
boolean |
removeAll(java.util.Collection<?> c) |
boolean |
retainAll(java.util.Collection<?> c) |
int |
size() |
java.lang.Object[] |
toArray() |
<T1> T1[] |
toArray(T1[] a) |
buildFrom, buildFrom, closest, entries, find, getLeftMost, getRightMost, getRoot, insertAt, insertRange, makeEntriesCollection, orderConsistencyCheck, removeRange, replace, setRootclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic int size()
size in interface java.util.Collection<T>public boolean isEmpty()
isEmpty in interface java.util.Collection<T>public java.util.Iterator<T> iterator()
public java.lang.Object[] toArray()
toArray in interface java.util.Collection<T>public <T1> T1[] toArray(T1[] a)
toArray in interface java.util.Collection<T>public boolean containsAll(java.util.Collection<?> c)
containsAll in interface java.util.Collection<T>public boolean addAll(java.util.Collection<? extends T> c)
addAll in interface java.util.Collection<T>public boolean removeAll(java.util.Collection<?> c)
removeAll in interface java.util.Collection<T>public boolean retainAll(java.util.Collection<?> c)
retainAll in interface java.util.Collection<T>public void clear()
clear in interface java.util.Collection<T>