Class GraphAnalyzer.Path

    • Method Detail

      • clone

        public java.lang.Object clone()
        Clone this path and return a new path containing the same entries between the same pair of ports.
        Overrides:
        clone in class java.lang.Object
        Returns:
        A new path.
      • equals

        public boolean equals​(java.lang.Object object)
        Test the equivalence between two paths. They are equivalent if they have the same ports and entries.
        Specified by:
        equals in interface java.util.Collection<GraphAnalyzer.IndexedList>
        Overrides:
        equals in class java.lang.Object
        Parameters:
        object - The object to be tested.
        Returns:
        true if the object is a path and it is equivalent to this path; false otherwise.
      • getEndPort

        public Port getEndPort()
        Get the end port of this path.
        Returns:
        The end port.
      • getStartPort

        public Port getStartPort()
        Get the start port of this path.
        Returns:
        The start port.
      • hashCode

        public int hashCode()
        Return the hash code of this path, which is a combination of the start port's hash code and a hash code computed with all the entries inside.
        Specified by:
        hashCode in interface java.util.Collection<GraphAnalyzer.IndexedList>
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        The hash code.
      • toString

        public java.lang.String toString()
        Return a string that describes this path.
        Overrides:
        toString in class java.lang.Object
        Returns:
        A string that describes this path.