File tree Expand file tree Collapse file tree 2 files changed +0
-14
lines changed
src/com/codefortomorrow/advanced/chapter16/solutions Expand file tree Collapse file tree 2 files changed +0
-14
lines changed Original file line number Diff line number Diff line change 5
5
c4t-java.iml
6
6
.DS_Store
7
7
8
- # ignore prettier files
9
- .prettierrc.json
Original file line number Diff line number Diff line change 2
2
3
3
// UUID to represent each node's unique ID
4
4
import java .util .UUID ;
5
- import lombok .AllArgsConstructor ;
6
- import lombok .Getter ;
7
- // using Lombok for Getters and Setters (saves lines)
8
- import lombok .Setter ;
9
- import lombok .Setter ;
10
5
11
6
/**
12
7
* @author ArmeetJatyani
23
18
* - toString(): return a String representation of the list
24
19
*/
25
20
26
- @ Setter
27
21
public class LinkedList {
28
22
29
23
private LinkedListNode head ;
@@ -37,7 +31,6 @@ public LinkedList() {
37
31
38
32
/**
39
33
* constructor with first value
40
- * @param value
41
34
*/
42
35
public LinkedList (int value ) {
43
36
// create first node
@@ -69,7 +62,6 @@ public LinkedListNode tail() {
69
62
70
63
/**
71
64
* add new element (node) to linked list
72
- * @param value
73
65
*/
74
66
public void add (int value ) {
75
67
LinkedListNode tail = tail ();
@@ -119,8 +111,6 @@ public String toString() {
119
111
}
120
112
}
121
113
122
- @ Getter
123
- @ Setter
124
114
class Node {
125
115
126
116
private UUID ID ;
@@ -136,8 +126,6 @@ public int value() {
136
126
}
137
127
}
138
128
139
- @ Getter
140
- @ Setter
141
129
class LinkedListNode extends Node {
142
130
143
131
private LinkedListNode next ;
You can’t perform that action at this time.
0 commit comments