|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<String>
gov.nasa.worldwind.util.tree.TreePath
public class TreePath
A path to a node in a Tree. The path is expressed as a list of strings.
| Field Summary |
|---|
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
TreePath()
Create an empty tree path. |
|
TreePath(List<String> initialPathEntries)
Create a tree path from a list. |
|
TreePath(String initialPathEntry,
String... args)
Create a tre path. |
|
TreePath(TreePath initialPath,
String... args)
Create a tre path. |
|
| Method Summary | |
|---|---|
static boolean |
isEmptyPath(TreePath path)
Determines if a path is empty. |
TreePath |
lastButOne()
Retrieves the a sub-section of this path from the first element to the second to last element. |
TreePath |
subPath(int start,
int end)
Retrieves a subsection of the path. |
String |
toString()
|
| Methods inherited from class java.util.ArrayList |
|---|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize |
| Methods inherited from class java.util.AbstractList |
|---|
equals, hashCode, iterator, listIterator, listIterator, subList |
| Methods inherited from class java.util.AbstractCollection |
|---|
containsAll, removeAll, retainAll |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList |
| Constructor Detail |
|---|
public TreePath()
public TreePath(List<String> initialPathEntries)
initialPathEntries - Entries in the path.
public TreePath(String initialPathEntry,
String... args)
initialPathEntry - The first entry in the path.args - Additional path entries.
public TreePath(TreePath initialPath,
String... args)
initialPath - Base tree path.args - Additional path elements to append to initialPath.| Method Detail |
|---|
public static boolean isEmptyPath(TreePath path)
path - Path to test.
true if path contains no entries, path is null, or if the first entry of
path is null or an empty string.public TreePath lastButOne()
public TreePath subPath(int start,
int end)
start - first index (inclusive) of the sub-pathend - last index (exclusive) of the sub-path
start and end.public String toString()
toString in class AbstractCollection<String>
|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||