Make project setup easier with Maven (#411)
* Remove a bunch of .ideas and class files to see if it makes the setup easier * remove some .idea's and imkls * Remove a ton of .class files * [TASK] Switched to maven instead of gradle * [TASK] Added target to gitignore * Remove ignored files * [TASK] Fixed file_server source * [TASK] Fixed client source * [BUGFIX] Main Class * [BUGFIX] Fixed SLF4J * [TASK] Server Libs cleanup * Update setup guide/debug * Maven cli compile instructions * [TASK] Jar building * Update runServer and runFileServer.sh Co-authored-by: Sandro Coutinho <sandro@farrelltech.org>
This commit is contained in:
1 parent
6684364b64
commit
eebc60084f
1811 files changed
+61630
-63947
No files matched your search
@@ -0,0 +1,66 @@
|
||||
// Decompiled by Jad v1.5.8f. Copyright 2001 Pavel Kouznetsov.
|
||||
// Jad home page: http://www.kpdus.com/jad.html
|
||||
// Decompiler options: packimports(3)
|
||||
|
||||
final class NodeSubList {
|
||||
|
||||
public NodeSubList() {
|
||||
head = new NodeSub();
|
||||
head.prevNodeSub = head;
|
||||
head.nextNodeSub = head;
|
||||
}
|
||||
|
||||
public void insertHead(NodeSub nodeSub) {
|
||||
if (nodeSub.nextNodeSub != null) {
|
||||
nodeSub.unlinkSub();
|
||||
}
|
||||
nodeSub.nextNodeSub = head.nextNodeSub;
|
||||
nodeSub.prevNodeSub = head;
|
||||
nodeSub.nextNodeSub.prevNodeSub = nodeSub;
|
||||
nodeSub.prevNodeSub.nextNodeSub = nodeSub;
|
||||
}
|
||||
|
||||
public NodeSub popTail() {
|
||||
NodeSub nodeSub = head.prevNodeSub;
|
||||
if (nodeSub == head) {
|
||||
return null;
|
||||
} else {
|
||||
nodeSub.unlinkSub();
|
||||
return nodeSub;
|
||||
}
|
||||
}
|
||||
|
||||
public NodeSub reverseGetFirst() {
|
||||
NodeSub nodeSub = head.prevNodeSub;
|
||||
if (nodeSub == head) {
|
||||
current = null;
|
||||
return null;
|
||||
} else {
|
||||
current = nodeSub.prevNodeSub;
|
||||
return nodeSub;
|
||||
}
|
||||
}
|
||||
|
||||
public NodeSub reverseGetNext() {
|
||||
NodeSub nodeSub = current;
|
||||
if (nodeSub == head) {
|
||||
current = null;
|
||||
return null;
|
||||
} else {
|
||||
current = nodeSub.prevNodeSub;
|
||||
return nodeSub;
|
||||
}
|
||||
}
|
||||
|
||||
public int getNodeCount() {
|
||||
int i = 0;
|
||||
for (NodeSub nodeSub = head.prevNodeSub; nodeSub != head; nodeSub = nodeSub.prevNodeSub) {
|
||||
i++;
|
||||
}
|
||||
|
||||
return i;
|
||||
}
|
||||
|
||||
private final NodeSub head;
|
||||
private NodeSub current;
|
||||
}
|
||||
Reference in new issue
Block a user