Loading EDG/src/main/java/edg/work/NodeWork.java +7 −0 Original line number Diff line number Diff line Loading @@ -61,4 +61,11 @@ public class NodeWork extends Work && currentNode == ((NodeWork) object).currentNode && previousEdgeType == ((NodeWork) object).previousEdgeType; } @Override public boolean isSuffix(Work w) { return w instanceof NodeWork && previousEdgeType == ((NodeWork) w).previousEdgeType && super.isSuffix(w); } } No newline at end of file EDG/src/main/java/edg/work/Work.java +5 −0 Original line number Diff line number Diff line Loading @@ -79,6 +79,11 @@ public abstract class Work return this.id.hashCode() + this.constraints.hashCode(); } /** * <b>Prerequisite</b>: id.equals(w.id) * <br> * Subclasses must override this method if equality isn't based only on id. */ public boolean isSuffix(Work w) { return constraints.isSuffix(w.constraints); } Loading Loading
EDG/src/main/java/edg/work/NodeWork.java +7 −0 Original line number Diff line number Diff line Loading @@ -61,4 +61,11 @@ public class NodeWork extends Work && currentNode == ((NodeWork) object).currentNode && previousEdgeType == ((NodeWork) object).previousEdgeType; } @Override public boolean isSuffix(Work w) { return w instanceof NodeWork && previousEdgeType == ((NodeWork) w).previousEdgeType && super.isSuffix(w); } } No newline at end of file
EDG/src/main/java/edg/work/Work.java +5 −0 Original line number Diff line number Diff line Loading @@ -79,6 +79,11 @@ public abstract class Work return this.id.hashCode() + this.constraints.hashCode(); } /** * <b>Prerequisite</b>: id.equals(w.id) * <br> * Subclasses must override this method if equality isn't based only on id. */ public boolean isSuffix(Work w) { return constraints.isSuffix(w.constraints); } Loading