File tree Expand file tree Collapse file tree 1 file changed +6
-12
lines changed
src/com/codefortomorrow/advanced/chapter16/solutions Expand file tree Collapse file tree 1 file changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -122,37 +122,31 @@ public String toString() {
122
122
123
123
@ Getter
124
124
@ Setter
125
- class Node
126
- {
125
+ class Node {
127
126
private UUID ID ;
128
127
private int value ;
129
128
130
- public Node (int value )
131
- {
129
+ public Node (int value ) {
132
130
this .ID = UUID .randomUUID ();
133
131
this .value = value ;
134
132
}
135
133
136
- public int value ()
137
- {
134
+ public int value () {
138
135
return this .value ;
139
136
}
140
137
}
141
138
142
139
@ Getter
143
140
@ Setter
144
- class LinkedListNode extends Node
145
- {
141
+ class LinkedListNode extends Node {
146
142
private LinkedListNode next ;
147
143
148
- public LinkedListNode (int value , LinkedListNode next )
149
- {
144
+ public LinkedListNode (int value , LinkedListNode next ) {
150
145
super (value );
151
146
this .next = next ;
152
147
}
153
148
154
- public LinkedListNode next ()
155
- {
149
+ public LinkedListNode next () {
156
150
return this .next ;
157
151
}
158
152
}
You can’t perform that action at this time.
0 commit comments