Class DERPath.Node

java.lang.Object
org.ldaptive.asn1.DERPath.Node
Enclosing class:
DERPath

static class DERPath.Node extends Object
DER path node encapsulates the path name and its location among other children that share a common parent.
  • Field Details

    • HASH_CODE_SEED

      private static final int HASH_CODE_SEED
      hash code seed.
      See Also:
    • name

      private final String name
      Name of this node.
    • childIndex

      private final int childIndex
      Index of this node.
  • Constructor Details

    • Node

      Node(String n)
      Creates a new node with an indeterminate index.
      Parameters:
      n - name of this node
    • Node

      Node(String n, int i)
      Creates a new node with the given index.
      Parameters:
      n - name of this node
      i - child index location of this node in the path
  • Method Details

    • getName

      public String getName()
      Returns the name.
      Returns:
      name
    • getChildIndex

      public int getChildIndex()
      Returns the child index.
      Returns:
      child index
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toString

      public void toString(StringBuilder builder)
      Appends the string representation of this instance to the given string builder.
      Parameters:
      builder - Builder to hold string representation of this instance.