-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLineNode.java
More file actions
45 lines (36 loc) · 804 Bytes
/
LineNode.java
File metadata and controls
45 lines (36 loc) · 804 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
public class LineNode implements Node<LineNode> {
LinkedList pieces;
LineNode next, prev;
int txtSize;
public LineNode(LinkedList first) {
pieces = first;
}
public int getTxtSize() {
return txtSize;
}
public void setTxtSize(int txtSize) {
this.txtSize = txtSize;
}
public LinkedList getPieces() {
return pieces;
}
public void setPieces(LinkedList pieces) {
this.pieces = pieces;
}
@Override
public LineNode getNext() {
return next;
}
@Override
public void setNext(LineNode next) {
this.next = next;
}
@Override
public LineNode getPrev() {
return prev;
}
@Override
public void setPrev(LineNode prev) {
this.prev = prev;
}
}