Class Relationship

    • Constructor Detail

      • Relationship

        public Relationship()
        No argument constructor is necessary for Ant admin utility
      • Relationship

        public Relationship​(String child,
                            String parent)
        Construct a new relationship given a child and parent name.
        Parameters:
        child - contains the name of child.
        parent - contains the name of parent.
    • Method Detail

      • getChild

        public String getChild()
        Return the child name.
        Returns:
        name of child.
      • setChild

        public void setChild​(String child)
        Set the child name.
        Parameters:
        child - contains the name of child.
      • getParent

        public String getParent()
        Return the parent name.
        Returns:
        name of parent.
      • setParent

        public void setParent​(String parent)
        Set the parent name.
        Parameters:
        parent - contains the name of parent.
      • hashCode

        public final int hashCode()
        Compute the hashcode on the parent and child values. This is used for list processing.
        Overrides:
        hashCode in class Object
        Returns:
        hashcode that includes parent concatenated with child.
      • equals

        public boolean equals​(Object thatObj)
        Matches the parent and child values from two Relationship entities.
        Overrides:
        equals in class Object
        Parameters:
        thatObj - contains a Relationship entity.
        Returns:
        boolean indicating both objects contain matching parent and child names.