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 55c4t-java.iml
66.DS_Store
77
8- # ignore prettier files
9- .prettierrc.json
Original file line number Diff line number Diff line change 22
33// UUID to represent each node's unique ID
44import 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
2318 * - toString(): return a String representation of the list
2419 */
2520
26- @ Setter
2721public 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
124114class Node {
125115
126116 private UUID ID ;
@@ -136,8 +126,6 @@ public int value() {
136126 }
137127}
138128
139- @ Getter
140- @ Setter
141129class LinkedListNode extends Node {
142130
143131 private LinkedListNode next ;
You can’t perform that action at this time.
0 commit comments