mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-13 11:01:54 +00:00
More documentation.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user