static class DERPath.Node
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private int |
childIndex
Index of this node.
|
private static int |
HASH_CODE_SEED
hash code seed.
|
private java.lang.String |
name
Name of this node.
|
| Constructor and Description |
|---|
Node(java.lang.String n)
Creates a new node with an indeterminate index.
|
Node(java.lang.String n,
int i)
Creates a new node with the given index.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
int |
getChildIndex()
Returns the child index.
|
java.lang.String |
getName()
Returns the name.
|
int |
hashCode() |
java.lang.String |
toString() |
void |
toString(java.lang.StringBuilder builder)
Appends the string representation of this instance to the given string builder.
|
private static final int HASH_CODE_SEED
private final java.lang.String name
private final int childIndex
public Node(java.lang.String n)
n - name of this nodepublic Node(java.lang.String n,
int i)
n - name of this nodei - child index location of this node in the pathpublic java.lang.String getName()
public int getChildIndex()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic void toString(java.lang.StringBuilder builder)
builder - Builder to hold string representation of this instance.