Skip to content

Commit db58c32

Browse files
committed
formatted
1 parent cfc050c commit db58c32

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

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

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -122,37 +122,31 @@ public String toString() {
122122

123123
@Getter
124124
@Setter
125-
class Node
126-
{
125+
class Node {
127126
private UUID ID;
128127
private int value;
129128

130-
public Node(int value)
131-
{
129+
public Node(int value) {
132130
this.ID = UUID.randomUUID();
133131
this.value = value;
134132
}
135133

136-
public int value()
137-
{
134+
public int value() {
138135
return this.value;
139136
}
140137
}
141138

142139
@Getter
143140
@Setter
144-
class LinkedListNode extends Node
145-
{
141+
class LinkedListNode extends Node {
146142
private LinkedListNode next;
147143

148-
public LinkedListNode(int value, LinkedListNode next)
149-
{
144+
public LinkedListNode(int value, LinkedListNode next) {
150145
super(value);
151146
this.next = next;
152147
}
153148

154-
public LinkedListNode next()
155-
{
149+
public LinkedListNode next() {
156150
return this.next;
157151
}
158152
}

0 commit comments

Comments
 (0)