|
Last update: 2011-06-23 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.proteios.util.Tree<E>
public class Tree<E>
| Nested Class Summary | |
|---|---|
static class |
Tree.Entry<E>
Represents an entry for a node in the tree. |
| Constructor Summary | |
|---|---|
Tree(E root)
Create a new tree with the with the default initial capacity (16). |
|
Tree(E root,
int initialCapacity)
Create a new tree with the with the specified initial capacity. |
|
| Method Summary | ||
|---|---|---|
boolean |
add(E o)
Not supported. |
|
boolean |
addAll(Collection<? extends E> c)
Not supported. |
|
void |
clear()
Clear all elements except the root element. |
|
boolean |
contains(Object o)
|
|
boolean |
containsAll(Collection<?> c)
|
|
Iterator<Tree.Entry<E>> |
entryIterator()
Create an iterator for the three that returns entry object. |
|
boolean |
equals(Object o)
Equality only tests if the object is the same instance of this tree. |
|
Tree.Entry<E> |
getEntry(E node)
Get the entry for an arbitrary node. |
|
Tree.Entry<E> |
getRootEntry()
Get the entry for the root node. |
|
boolean |
isEmpty()
|
|
Iterator<E> |
iterator()
|
|
boolean |
remove(Object o)
Not supported. |
|
boolean |
removeAll(Collection<?> c)
Not supported. |
|
boolean |
retainAll(Collection<?> c)
Not supported. |
|
int |
size()
|
|
Object[] |
toArray()
Not supported. |
|
|
toArray(T[] a)
Not supported. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Collection |
|---|
hashCode |
| Constructor Detail |
|---|
public Tree(E root)
root - The root node element of the tree
public Tree(E root,
int initialCapacity)
root - The root node element of the treeinitialCapacity - The initial capacity| Method Detail |
|---|
public boolean add(E o)
add in interface Collection<E>UnsupportedOperationException - AlwaysTree.Entry.addChild(Object)public boolean addAll(Collection<? extends E> c)
addAll in interface Collection<E>UnsupportedOperationException - Alwayspublic void clear()
clear in interface Collection<E>public boolean contains(Object o)
contains in interface Collection<E>public boolean containsAll(Collection<?> c)
containsAll in interface Collection<E>public boolean equals(Object o)
equals in interface Collection<E>equals in class Objectpublic boolean isEmpty()
isEmpty in interface Collection<E>public Iterator<E> iterator()
iterator in interface Iterable<E>iterator in interface Collection<E>public boolean remove(Object o)
remove in interface Collection<E>UnsupportedOperationException - Alwayspublic boolean removeAll(Collection<?> c)
removeAll in interface Collection<E>UnsupportedOperationException - Alwayspublic boolean retainAll(Collection<?> c)
retainAll in interface Collection<E>UnsupportedOperationException - Alwayspublic int size()
size in interface Collection<E>public Object[] toArray()
toArray in interface Collection<E>UnsupportedOperationException - Alwayspublic <T> T[] toArray(T[] a)
toArray in interface Collection<E>UnsupportedOperationException - Alwayspublic Tree.Entry<E> getRootEntry()
Entry object for the root node.public Tree.Entry<E> getEntry(E node)
node - The node to get the entry for.
Entry object or null if the node isn't foundpublic Iterator<Tree.Entry<E>> entryIterator()
Iterator objectiterator()
|
Last update: 2011-06-23 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||