Class 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 Detail

      • HASH_CODE_SEED

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

        private final String name
        Name of this node.
      • childIndex

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

      • 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 Detail

      • getName

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

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

        public int hashCode()
        Overrides:
        hashCode 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.