MCPcopy Create free account
hub / github.com/Neop/mudmap2 / getEntries

Method getEntries

src/main/java/mudmap2/backend/WorldFileList.java:117–125  ·  view source on GitHub ↗

Get limited list of entries @return

()

Source from the content-addressed store, hash-verified

115 * @return
116 */
117 public static LinkedList<WorldFileEntry> getEntries(){
118 LinkedList<WorldFileEntry> ret = new LinkedList<>(worldFileHistory);
119
120 while(ret.size() > MAX_HISTORY_ENTRIES){
121 ret.removeLast();
122 }
123
124 return ret;
125 }
126
127 /**
128 * Removes entries that do not exist in file system

Callers 5

testPushMethod · 0.95
testGetEntriesMethod · 0.95
testReadMethod · 0.95
initGuiMethod · 0.95
writeListJSONMethod · 0.95

Calls

no outgoing calls

Tested by 3

testPushMethod · 0.76
testGetEntriesMethod · 0.76
testReadMethod · 0.76