| Modifier and Type | Field and Description | 
|---|---|
private int | 
childIndex
Index of this node. 
 | 
private static int | 
HASH_CODE_SEED
hash code seed. 
 | 
private String | 
name
Name of this node. 
 | 
| Constructor and Description | 
|---|
Node(String n)
Creates a new node with an indeterminate index. 
 | 
Node(String n,
    int i)
Creates a new node with the given index. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
equals(Object o)  | 
int | 
getChildIndex()
Returns the child index. 
 | 
String | 
getName()
Returns the name. 
 | 
int | 
hashCode()  | 
String | 
toString()  | 
void | 
toString(StringBuilder builder)
Appends the string representation of this instance to the given string builder. 
 | 
private static final int HASH_CODE_SEED
private final String name
private final int childIndex
Node(String n)
n - name of this nodeNode(String n, int i)
n - name of this nodei - child index location of this node in the pathpublic String getName()
public int getChildIndex()
public void toString(StringBuilder builder)
builder - Builder to hold string representation of this instance.Copyright © 2003-2019 Virginia Tech. All Rights Reserved.