You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Gets text value (question, etc) stored by Element
84
84
* @return
85
85
*/
86
-
publicTgetValue() {
86
+
publicObjectgetValue() {
87
87
returnvalue;
88
88
}
89
89
@@ -117,19 +117,19 @@ public boolean hasLink(){
117
117
return !link.isEmpty();
118
118
}
119
119
120
-
publicvoidaddChild(Element<T>child) {
120
+
publicvoidaddChild(Elementchild) {
121
121
this.children.add(child);
122
122
}
123
123
124
-
publicLinkedList<Element<T>> getChildren() {
124
+
publicLinkedList<Element> getChildren() {
125
125
returnchildren;
126
126
}
127
127
128
-
publicElement<T>getParent() {
128
+
publicElementgetParent() {
129
129
returnparent;
130
130
}
131
131
132
-
publicvoidsetParent(Element<T>parent) {
132
+
publicvoidsetParent(Elementparent) {
133
133
this.parent = parent;
134
134
}
135
135
@@ -207,8 +207,8 @@ public String toString() {
207
207
* @param parent required to keep tree structure, since making a deep copy of parent will result in a invalid reference to the actual parent of the element.
0 commit comments