More documentation.

This commit is contained in:
Jindra Petřík
2024-08-06 06:17:00 +02:00
parent 68954e714d
commit b57e38e387
286 changed files with 11752 additions and 3576 deletions

View File

@@ -19,19 +19,35 @@ package com.jpexs.decompiler.graph;
import java.util.Objects;
/**
*
* Edge of a graph. Represents a connection between two GraphParts.
* @author JPEXS
*/
public class GraphPartEdge {
/**
* From part
*/
public GraphPart from;
/**
* To part
*/
public GraphPart to;
/**
* Constructs a new edge
* @param from From
* @param to To
*/
public GraphPartEdge(GraphPart from, GraphPart to) {
this.from = from;
this.to = to;
}
/**
* Hash code
* @return Hash code
*/
@Override
public int hashCode() {
int hash = 3;
@@ -40,6 +56,11 @@ public class GraphPartEdge {
return hash;
}
/**
* Equals
* @param obj Object to compare
* @return True if equals
*/
@Override
public boolean equals(Object obj) {
if (this == obj) {
@@ -61,6 +82,10 @@ public class GraphPartEdge {
return true;
}
/**
* To string
* @return String representation
*/
@Override
public String toString() {
return from.toString() + " -> " + to.toString();