Skip to content

Commit 9ac5b2d

Browse files
committed
made requested changes
1 parent 85bda2c commit 9ac5b2d

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,3 @@
55
c4t-java.iml
66
.DS_Store
77

8-
# ignore prettier files
9-
.prettierrc.json

src/com/codefortomorrow/advanced/chapter16/solutions/LinkedList.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@
22

33
// UUID to represent each node's unique ID
44
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;
105

116
/**
127
* @author ArmeetJatyani
@@ -23,7 +18,6 @@
2318
* - toString(): return a String representation of the list
2419
*/
2520

26-
@Setter
2721
public class LinkedList {
2822

2923
private LinkedListNode head;
@@ -37,7 +31,6 @@ public LinkedList() {
3731

3832
/**
3933
* constructor with first value
40-
* @param value
4134
*/
4235
public LinkedList(int value) {
4336
// create first node
@@ -69,7 +62,6 @@ public LinkedListNode tail() {
6962

7063
/**
7164
* add new element (node) to linked list
72-
* @param value
7365
*/
7466
public void add(int value) {
7567
LinkedListNode tail = tail();
@@ -119,8 +111,6 @@ public String toString() {
119111
}
120112
}
121113

122-
@Getter
123-
@Setter
124114
class Node {
125115

126116
private UUID ID;
@@ -136,8 +126,6 @@ public int value() {
136126
}
137127
}
138128

139-
@Getter
140-
@Setter
141129
class LinkedListNode extends Node {
142130

143131
private LinkedListNode next;

0 commit comments

Comments
 (0)