Package daikon.diff

Class Node<CONTENT extends @Nullable Object,​CHILD>

  • Type Parameters:
    CONTENT - half of the type of the objects stored in this node, which are IPair<CONTENT,CONTENT>
    CHILD - the type of the children; it is is ignored if there are no children
    Direct Known Subclasses:
    InvNode, PptNode, RootNode

    public abstract class Node<CONTENT extends @Nullable Object,​CHILD>
    extends Object
    All nodes must subclass this class.
    • Method Detail

      • add

        public void add​(CHILD newChild)
      • getUserLeft

        @Pure
        public CONTENT getUserLeft()
        Returns the first element of the user object pair.
        Returns:
        the first element of the user object pair
      • getUserRight

        @Pure
        public CONTENT getUserRight()
        Returns the second element of the user object pair.
        Returns:
        the second element of the user object pair